i18next-http-backend: Hydration Error on page reload with next 12 + react 18
π Bug Report
When using client side translation in development running next dev on page refresh react throws the following error:
Error: Text content does not match server-rendered HTML.
The following errors appear in the console: Text content did not match. Server: "Hello World" Client: "hello_world"
Error message running production server next build and next start.
To Reproduce
The bug can be reproduced with the official next example and react & react-dom version 18.1.0.
Expected behavior
No hydration error.
Your Environment
- Runtime: Node.js v16.14.0, Chromium v102, Safari v15.5
- next-i18next version: 11.0.0
- OS: MacOS v12.4
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 15 (1 by maintainers)
A solution for this problem should be included in the readme file, as the example doesnβt work (at least not without errors).
I can assure you itβs possible.
any update?
With React 18 you can enable
useSuspenseoption