From 75b97f54b991262b0ed355df2f632584f9cf0db4 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Thu, 18 Apr 2024 23:04:04 -0400 Subject: [PATCH] Fix useEffect deps --- src/components/ThemeProvider/ThemeProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {