diff --git a/packages/use-theme/src/use-theme.ts b/packages/use-theme/src/use-theme.ts index 5d3ae2a0..649daac6 100644 --- a/packages/use-theme/src/use-theme.ts +++ b/packages/use-theme/src/use-theme.ts @@ -80,10 +80,9 @@ export function useTheme(options?: UseThemeOptions): UseThemeReturn { if (typeof window !== 'undefined') { window.localStorage.setItem(storageKey, next); } - applyTheme(next, attribute); return next; }); - }, [storageKey, attribute]); + }, [storageKey]); return { theme, setTheme, toggleTheme }; }