I'm 92% sure this is intentional

This commit is contained in:
Corwin 2024-04-04 19:59:19 +01:00
parent 36f204958e
commit 2760a8451f
No known key found for this signature in database

View file

@ -22,6 +22,7 @@ export const useLocalStorage = <T>(
try { try {
localStorage.setItem(appName, JSON.stringify(newValue)); localStorage.setItem(appName, JSON.stringify(newValue));
} catch { } } catch { }
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []); }, []);
return [value, setStoredValue]; return [value, setStoredValue];