Skip to content
Discussion options

You must be logged in to vote

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 since useTranslations has some benefits.

Note that in the linked issue the user seems to use useTranslations in an async component, which is not supported (async components can't use hooks). AFAIK The React Hooks ESLint plugin will warn about this in the future.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ScreamZ
Comment options

@nikolap
Comment options

Answer selected by ScreamZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants