From be6fcf1ef183a76ee0f5869c6276d1f4f78d312e Mon Sep 17 00:00:00 2001 From: "denys.oblohin" Date: Tue, 27 Aug 2024 15:45:08 +0300 Subject: [PATCH] nit --- src/v3/src/components/Widget/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/v3/src/components/Widget/index.tsx b/src/v3/src/components/Widget/index.tsx index a15c2310e2..1a60e509c7 100644 --- a/src/v3/src/components/Widget/index.tsx +++ b/src/v3/src/components/Widget/index.tsx @@ -157,6 +157,7 @@ export const Widget: FunctionComponent = (widgetProps) => { initDefaultLanguage(); }); + // on unmount, remove the language useEffect(() => () => { if (Bundles.isLoaded(languageCode)) { Bundles.remove();