You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Hydration completed but contains mismatches error occurs when the root page is redirected to another language page based on browser language detection in a statically generated site.
Reproduction Steps
Use locale messages in the template.
Make it so that the detectBrowserLanguage cookie stores a non-default locale.
Directly access the root page, which triggers a redirect based on the locale saved in the cookie, resulting in a hydration error.
Demo
screencast.2024-09-04.10-26-33.mp4
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://github.com/besfir/i18n_reproduction
Describe the bug
Issue
A Hydration completed but contains mismatches error occurs when the root page is redirected to another language page based on browser language detection in a statically generated site.
Reproduction Steps
detectBrowserLanguage
cookie stores a non-default locale.Demo
screencast.2024-09-04.10-26-33.mp4
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: