Skip to content

Commit cde6e99

Browse files
authored
chore: eliminate lint warnings (#1214)
1 parent 18e90f8 commit cde6e99

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/react/src/html/ui/hooks/useTheme.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const useTheme = () => {
3434
useEffect(() => {
3535
const stored = localStorage.getItem('theme');
3636
if (stored === 'light' || stored === 'dark') {
37+
// eslint-disable-next-line react-x/set-state-in-effect -- deliberate post-hydration state sync
3738
setPref(stored);
3839
}
3940
}, []);

0 commit comments

Comments
 (0)