question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-i18next old method warning

See original GitHub issue

When developing the client, this warning appears:

react-i18next:: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.

Seeing as this has been recently adopted, I would not expect to see warnings about old methods.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
raulitoECjcommented, Feb 22, 2021

I’m not associated with this project, but I stumbled upon this post while trying to fix this problem for myself. I was able to get rid of this warning by adding { useSuspense : true } to the react object in the i18n configuration. Here is the link to the docs for more info, I hope it helps. https://react.i18next.com/latest/i18next-instance

0reactions
raisedadeadcommented, May 10, 2021

Here are the docs for react i18next: https://react.i18next.com, if you need help please consider seeking assistance on their community channels.

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-i18next old useSuspense warning
react-i18next:: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour. How can I clear...
Read more >
Step by step guide - react-i18next documentation
Configure i18next​​ I18next is the core of the i18n functionality while react-i18next extends and glues it to react. import Backend from 'i18next-http-backend'; ...
Read more >
Testing - react-i18next documentation
In the test, test the myComponent export passing a t function mock: ... any components using the translate hook can use it without...
Read more >
Configuration Options - i18next documentation
Set it to false if your backend loads resources synchronously - that way, calling i18next.t() after init() is possible without relying on the...
Read more >
Migrating v9 to v10
This is a specific migration guide regarding the complete react-i18next rewrite in v10. If you're looking for general release notes, please have a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found