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
We in AtB (the transport company in Trøndelag, Norway) actually use this library for the translations in our app.
Sometimes we translate something in a hook, and then we come into the situation where we need t in the dependency array to make the exhaustive-deps rule happy, but the t function is not a stable reference.
Would it be possible to use useCallback on the creation of the t function? By changing
We in AtB (the transport company in Trøndelag, Norway) actually use this library for the translations in our app.
Sometimes we translate something in a hook, and then we come into the situation where we need
t
in the dependency array to make the exhaustive-deps rule happy, but thet
function is not a stable reference.Would it be possible to use
useCallback
on the creation of thet
function? By changinginto
I can create a PR if you think this is an ok change.
The text was updated successfully, but these errors were encountered: