You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behaviour
All hooks should be called every render in the same order.
Screenshots
N/A
OS (please complete the following information):
N/A
Additional context
I am not familiar with the internal workings of i18next, so I can not give exact steps to reproduce, but I get the warning when I switch pages in Gatsby, although it probably happens in other situations too.
The text was updated successfully, but these errors were encountered:
Describe the bug
The rule of Hooks is broken in the useTranslation hook.
Occurs in react-i18next version
I believe the commit that first introduced it is
0fafb4563a9c852792bd6851b45008d1315566f0
.Here is the exact place in the current version
To Reproduce
N/A
Expected behaviour
All hooks should be called every render in the same order.
Screenshots
N/A
OS (please complete the following information):
N/A
Additional context
I am not familiar with the internal workings of i18next, so I can not give exact steps to reproduce, but I get the warning when I switch pages in Gatsby, although it probably happens in other situations too.
The text was updated successfully, but these errors were encountered: