Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Are you using React Server components or a framework built on it? Im guessing yes as your example would blow up completely on a client component since components can't be async there.
    – adsy
    Commented Jun 17, 2024 at 0:54
  • Yes i'm using nextJs. Is there any other way to make this?
    – soger
    Commented Jun 17, 2024 at 7:24
  • And just making sure, the file AvatarIcon is in does not do a use client anywhere?
    – adsy
    Commented Jun 19, 2024 at 19:11