Skip to content
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

bug: Hydration mismatch prefix strategy with redirectOn #6

Open
reslear opened this issue Dec 5, 2023 · 0 comments
Open

bug: Hydration mismatch prefix strategy with redirectOn #6

reslear opened this issue Dec 5, 2023 · 0 comments

Comments

@reslear
Copy link
Contributor

reslear commented Dec 5, 2023

started to see a problem with detectBrowserLanguage - redirectOn - strategy prefix

Hydration text content mismatch in

  detectBrowserLanguage: {
    useCookie: true,
    cookieKey: 'i18n_redirected',
    redirectOn: 'all',
    alwaysRedirect: true,
    cookieCrossOrigin: true,
  },
  strategy: 'prefix',
Screenshot 2023-12-05 at 02 01 06

repl:

  1. go https://stackblitz.com/edit/github-rhmupo?file=playground%2Fconfig%2Fi18n%2Findex.ts
  2. run playground with en-GB
  3. add to url prefix: 'hu' (https://githubrhmupo-ayzn--3000--6843a59c.local-credentialless.webcontainer.io/hu) or devtools - sensors - location, and click reload icon.
  4. inspect frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant