From 92ff86599c4c150a5a80176f827b7e87ca281924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rihards=20=C5=A0=C4=8Deredins?= Date: Sun, 25 Apr 2021 19:54:59 +0300 Subject: [PATCH] Listen for `namespaces` changes and load necessary namespaces (#592) --- src/DynamicNamespaces.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DynamicNamespaces.tsx b/src/DynamicNamespaces.tsx index 7b6ee166..ce9c1e41 100644 --- a/src/DynamicNamespaces.tsx +++ b/src/DynamicNamespaces.tsx @@ -28,7 +28,7 @@ export default function DynamicNamespaces({ useEffect(() => { loadNamespaces() - }, []) + }, [namespaces.join()]) if (!loaded) return fallback || null