-
Hello, Many time i'm switching from a client component to async server component. Like in that post vercel/next.js#55027 (comment) I get
This can be solved by swapping While Is there any way to improve the log and warn about this? So we can use Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Interesting, haven't encountered this one yet. Could be that there's an upstream issue in Next.js / React, I'd prefer to not advocate for Note that in the linked issue the user seems to use |
Beta Was this translation helpful? Give feedback.
Interesting, haven't encountered this one yet. Could be that there's an upstream issue in Next.js / React, I'd prefer to not advocate for
getTranslations
too much sinceuseTranslations
has some benefits.Note that in the linked issue the user seems to use
useTranslations
in anasync
component, which is not supported (async components can't use hooks). AFAIK The React Hooks ESLint plugin will warn about this in the future.