Closed BertCatsburg closed 3 years ago
Did you test this in your next.js app? Does it work as expected?
Yes, it did. Sorry not to include a full test, but for that I had to set up a complete NextJS environment with all bells and whistles.
I tested it in our company-project by modifying the code in node_modules. Before the change we got an error on the console about the 'window'. After the change the error was gone and all i18n functionality kept on working.
thank you, included in v3.1.3
A simple case of testing the Window variable before use. If not 'window' is available, like in SSR situations, then null is returned for the Store. The function using the store will return undefined, but this is ServerSide. ClientSide will have the 'window' variable and works as before.
Checklist
npm run test