Skip to content

Commit f362a41

Browse files
committed
fix theme mode
1 parent 6861605 commit f362a41

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/shell/theme.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export const AppThemeProvider = ({
8080
theme = overrideThemeMode === ThemeMode.Light ? lightTheme : darkTheme;
8181
}
8282

83+
React.useEffect(() => {
84+
useThemeMode.persist.rehydrate();
85+
}, []);
86+
8387
return (
8488
<MuiThemeProvider theme={theme}>
8589
<EmotionThemeProvider theme={theme}>{children}</EmotionThemeProvider>

0 commit comments

Comments
 (0)