We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f6986d + 533f7f2 commit f722abbCopy full SHA for f722abb
packages/i18n/src/provider.tsx
@@ -43,7 +43,7 @@ export interface I18nProviderProps {
43
export function I18nProvider({ config, instance: externalInstance, children }: I18nProviderProps) {
44
const i18nInstance = useMemo(
45
() => externalInstance || createI18n(config),
46
- [externalInstance], // eslint-disable-line react-hooks/exhaustive-deps
+ [externalInstance, config],
47
);
48
49
const [language, setLanguage] = useState(i18nInstance.language || 'en');
0 commit comments