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
When implementing react-i18next there are scenarios when a call needs to be made to t(...) (from i18n) or i18n.language inside a useEffect. This generates a dependency warning for t(..) and i18n. I don't think it should be a dependency since we do not want to update based on what's in t(..) or i18n.language?
Added the line:
// eslint-disable-next-line react-hooks/exhaustive-deps
To ignore these warnings.
Is there a better way to handle these issues?
The text was updated successfully, but these errors were encountered:
When implementing react-i18next there are scenarios when a call needs to be made to t(...) (from i18n) or i18n.language inside a useEffect. This generates a dependency warning for t(..) and i18n. I don't think it should be a dependency since we do not want to update based on what's in t(..) or i18n.language?
Added the line:
// eslint-disable-next-line react-hooks/exhaustive-deps
To ignore these warnings.
Is there a better way to handle these issues?
The text was updated successfully, but these errors were encountered: