Skip to content

Commit

Permalink
fix: Update useEffect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 5, 2024
1 parent 5fc733b commit dab8123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/client/core/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit dab8123

Please sign in to comment.