Pattern: Client component as async function
Issue: -
Client components should not be async functions.
It's too easy for a single prop to flow through the component and invalidate its memoization, triggering the microtask dance. It's not so much that it introduces new performance caveats, but it makes all the performance caveats described above much more likely.
- Remove the
async
keyword from the client component function declaration, or - Convert the client component to a server component