-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useSuspense causes infinite rerender loop in NextJS app #1833
Comments
Like said in this comment, you should not use suspense => i18next/next-i18next#2095 (comment) And also stated in the readme: https://github.com/i18next/next-i18next?tab=readme-ov-file#asynchronous-i18next-backends |
If i don't use |
Wrapped my page code in |
You should not need to wrap your code with Suspense if you don't use suspense... |
🐛 Bug Report
Setting
react.useSuspense: true
in i18next init options causes infinite interface rerenders when usinguseTranslation
hook.To Reproduce
Just set useSuspense to
true
.You can also enable debug with
debug: true
and see in the console infinitelocaleChanged
events.Expected behavior
No infinite rerender loop.
Your Environment
The text was updated successfully, but these errors were encountered: