diff --git a/lib/src/client/core/core.tsx b/lib/src/client/core/core.tsx index 72280238..6344409d 100644 --- a/lib/src/client/core/core.tsx +++ b/lib/src/client/core/core.tsx @@ -56,7 +56,7 @@ export const Core = ({ t }: CoreProps) => { ["m", mode], ].forEach(([dataLabel, value]) => documentEl.setAttribute(`data-${dataLabel}`, value)); localStorage.setItem(key, JSON.stringify({ mode, systemMode })); - }, [resolvedMode]); + }, [resolvedMode, systemMode, mode]); return null; };