bump deps and fix lint

This commit is contained in:
jake committed 2024-09-11 17:26:42 -04:00
1 parent 0dbb32a267
commit 89cd6780f9
4 files changed
+542 -441

No files matched your search

+4 -2
View File
@@ -34,7 +34,9 @@ const useLocalStorage = <T = string>(
window.localStorage.setItem(key, serializer(initialValue));
return initialValue;
}
} catch (error) {
} catch (
error // eslint-disable-line @typescript-eslint/no-unused-vars
) {
return initialValue;
}
});
@@ -63,7 +65,7 @@ const useLocalStorage = <T = string>(
try {
window.localStorage.removeItem(key);
setState(undefined);
} catch (error) {} // eslint-disable-line no-empty
} catch (error) {} // eslint-disable-line no-empty, @typescript-eslint/no-unused-vars
}, [key]);
return [state, set, remove];