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
i18n.services.formatter shows undefined upon loading via useEffect. When I tried to use i18n as the mere dependency, some keys are failed to hydrate
To Reproduce
useEffect(()=>{// Check if i18n and all required nested properties existif(i18n?.services?.formatter){i18n.services.formatter.add("lowercase",(value,lng,options)=>{returnvalue?.toLowerCase();});}},[i18n.services.formatter]);
Expected behavior
Expected the keys are hydrated correctly without application error
Your Environment
i18next version: i.e. 22.4.15
os: Mac
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
i18n.services.formatter shows undefined upon loading via useEffect. When I tried to use
i18n
as the mere dependency, some keys are failed to hydrateTo Reproduce
Expected behavior
Expected the keys are hydrated correctly without application error
Your Environment
The text was updated successfully, but these errors were encountered: