Skip to content

Commit b380564

Browse files
committed
updated CharThemeProvider.tsx to use the standard pattern with arrow function. Originally work passed function factory directly which worked but wasn't clear.
1 parent efd24a7 commit b380564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/chart/src/ChartThemeProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function ChartThemeProvider({
2121
}: ChartThemeProviderProps): JSX.Element {
2222
const { activeThemes } = useTheme();
2323

24-
const chartTheme = useMemo(defaultChartTheme, [activeThemes]);
24+
const chartTheme = useMemo(() => defaultChartTheme(), [activeThemes]);
2525

2626
return (
2727
<ChartThemeContext.Provider value={chartTheme}>

0 commit comments

Comments
 (0)