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) {