Skip to content

Commit d4ee4ff

Browse files
pgburracklburrack
andauthored
doc(issue-2259): Document react state issue (#2260)
Updated README to explain on the best way to solve an issue where react state is getting cleared between pages navigations. Co-authored-by: lburrack <lburrack@nba.com>
1 parent 205e9a4 commit d4ee4ff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,20 @@ This means that the i18n configuration file will be in the same directory as `ne
400400

401401
**Notice** If your config `next-i18next.config.js` is not in the same directory as `next.config.js`, you must copy it manually (or by custom script).
402402

403+
#### Adding next-i18next incrementally
404+
405+
If you are planning on incrementally add next-i18next to you project we recommended that you will pass your `next-i18next.config` to `appWithTranslation` to avoid any issues.
406+
407+
i.e
408+
409+
```js
410+
import nextI18nextConfig from '../../next-i18next.config';
411+
//...
412+
export default appWithTranslation(MyApp, nextI18nextConfig);
413+
```
414+
415+
See Issue [#2259](https://github.com/i18next/next-i18next/issues/2259) for more information.
416+
403417
## Notes
404418

405419
### Vercel and Netlify

0 commit comments

Comments
 (0)