Skip to content

Reproducing issues with browser language detection and hydration.

Notifications You must be signed in to change notification settings

besfir/i18n_reproduction

Repository files navigation

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

  1. Use locale messages in the template.
  2. Make it so that the detectBrowserLanguage cookie stores a non-default locale.
  3. Directly access the root page, which triggers a redirect based on the locale saved in the cookie, resulting in a hydration error.

About

Reproducing issues with browser language detection and hydration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published