From 6a118e292113f64725ac0819fdcfa8a30fe6e32f Mon Sep 17 00:00:00 2001 From: Jean-Marc Millet Date: Tue, 20 Feb 2024 16:17:38 +0100 Subject: [PATCH] vegaChart : add currentTheme in useEffect dependency array --- src/lib/components/vegachartv2/VegaChartV2.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/vegachartv2/VegaChartV2.component.tsx b/src/lib/components/vegachartv2/VegaChartV2.component.tsx index 16a90707d2..fe43cb4332 100644 --- a/src/lib/components/vegachartv2/VegaChartV2.component.tsx +++ b/src/lib/components/vegachartv2/VegaChartV2.component.tsx @@ -188,7 +188,7 @@ function VegaChartInternal( vegaInstance.current.view.finalize(); } }; // eslint-disable-next-line react-hooks/exhaustive-deps - }, [vegaDOMInstance]); + }, [vegaDOMInstance, currentTheme]); useLayoutEffect(() => { if (vegaInstance.current) {