Skip to content

Commit

Permalink
Fix useEffect deps
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Apr 19, 2024
1 parent e996360 commit 75b97f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ThemeProvider/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const ThemeProvider = (props: PropsWithChildren<ThemeProviderProps>) => {
if (!props.theme) {
setTheme(getTheme(props.scope))
}
}, [])
}, [props.theme, props.scope])

// Allow prop theme override
useEffect(() => {
Expand Down

0 comments on commit 75b97f5

Please sign in to comment.