Skip to content

Commit

Permalink
fix: apply once (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-kallavus authored Dec 22, 2023
1 parent a8c8f4a commit 126ffd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/components/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const Settings = () => {
// Apply the current theme from localStorage when loaded
useLayoutEffect(() => {
apply();
}, [apply]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return (
<Popover
Expand Down

0 comments on commit 126ffd8

Please sign in to comment.