-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t is unstable in appDir #1205
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of this package are you using?
2.6.2
(appDir)What operating system, Node.js, and npm version?
N/A (present in all)
What happened?
The
t
function returned by theuseTranslation
hook is not stable.Consider this problematic usage scenario, for example:
What did you expect to happen?
t
should be a stable reference. This way, hooks that depend on it do not change on every render.Are you willing to submit a pull request to fix this bug?
Yes, time allowing
The text was updated successfully, but these errors were encountered: