Skip to content

Commit

Permalink
vegaChart : add currentTheme in useEffect dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Feb 21, 2024
1 parent 1d5da7e commit 6a118e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/vegachartv2/VegaChartV2.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6a118e2

Please sign in to comment.