Skip to content

Commit 2b38edf

Browse files
committed
fix(themes): augment timeout to themeSig assignment to localstorage
1 parent 56e4ac2 commit 2b38edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/themes/src/lib/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const ThemeProvider = component$<ThemeProviderProps>(
7777
({ cleanup }) => {
7878
setTimeout(() => {
7979
themeSig.value = localStorage.getItem(storageKey) || defaultTheme;
80-
}, 1000);
80+
}, 2000);
8181
const media = window.matchMedia('(prefers-color-scheme: dark)');
8282

8383
const handleMediaQuery = $(async (e: MediaQueryListEvent | MediaQueryList) => {

0 commit comments

Comments
 (0)