Skip to content

Commit

Permalink
[@mantine/hooks] use-local-storage: Fix incorrect method called when …
Browse files Browse the repository at this point in the history
…item is removed from local storage (#2490)
  • Loading branch information
zhulien-ivanov committed Sep 19, 2022
1 parent 666ffb0 commit 8546c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-hooks/src/use-local-storage/create-storage.ts
Expand Up @@ -82,7 +82,7 @@ export function createStorage<T>(type: StorageType, hookName: string) {
);

const removeStorageValue = useCallback(() => {
window[type].removeStorageValue(key);
window[type].removeItem(key);
}, []);

useWindowEvent('storage', (event) => {
Expand Down

0 comments on commit 8546c58

Please sign in to comment.