Skip to content

Commit

Permalink
doc(issue-2259): Document react state issue (#2260)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pgburrack and lburrack committed Feb 16, 2024
1 parent 205e9a4 commit d4ee4ff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -400,6 +400,20 @@ This means that the i18n configuration file will be in the same directory as `ne

**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).

#### Adding next-i18next incrementally

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.

i.e

```js
import nextI18nextConfig from '../../next-i18next.config';
//...
export default appWithTranslation(MyApp, nextI18nextConfig);
```

See Issue [#2259](https://github.com/i18next/next-i18next/issues/2259) for more information.

## Notes

### Vercel and Netlify
Expand Down

0 comments on commit d4ee4ff

Please sign in to comment.