Not sure if that's intended behavior but if it's I think it's worth to add this note.
I wasn't aware of this and this reflected in a hard to track bug. Long story short, when second argument passed to 'off' is undefined, all existing listeners will be removed. As listeners are tightly coupled to react-i18next, some of useTranslation hooks suddenly stopped triggering the update when internal react-i18next context changed.
Not sure if that's intended behavior but if it's I think it's worth to add this note.
I wasn't aware of this and this reflected in a hard to track bug. Long story short, when second argument passed to 'off' is undefined, all existing listeners will be removed. As listeners are tightly coupled to
react-i18next
, some ofuseTranslation
hooks suddenly stopped triggering the update when internalreact-i18next
context changed.