Dan Ditomaso
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
packages/web/src/core/hooks/useLocalStorage.ts
|
|
|
@ -176,7 +176,7 @@ export default function useLocalStorage<T>( |
|
|
|
removeEventListener("storage", handleStorageChange); |
|
|
|
removeEventListener("local-storage", handleStorageChange); |
|
|
|
}; |
|
|
|
}, [handleStorageChange]); |
|
|
|
}, []); |
|
|
|
|
|
|
|
return [storedValue, setValue, removeValue]; |
|
|
|
} |
|
|
|
|