From 3ae18f34120572d07ffa90ab67376e5725f7066d Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Sat, 23 Jan 2021 21:21:31 +0100 Subject: [PATCH] BUGFIX missing hook dependency --- src/l10n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/l10n.js b/src/l10n.js index 090892a..f9d87da 100644 --- a/src/l10n.js +++ b/src/l10n.js @@ -68,7 +68,7 @@ export function AppLocalizationProvider({ userLocales, children, onLocaleChange setBundles( new ReactLocalization(generateBundles()) ) } loadBundles() - }, [userLocales]) + }, [userLocales, onLocaleChange]) if (!bundles) { // Show a loader.