diff --git a/src/components/ThemeProvider/ThemeProvider.tsx b/src/components/ThemeProvider/ThemeProvider.tsx index 6492e439f..dbd69db14 100644 --- a/src/components/ThemeProvider/ThemeProvider.tsx +++ b/src/components/ThemeProvider/ThemeProvider.tsx @@ -79,7 +79,7 @@ export const ThemeProvider = (props: PropsWithChildren) => { if (!props.theme) { setTheme(getTheme(props.scope)) } - }, []) + }, [props.theme, props.scope]) // Allow prop theme override useEffect(() => {