fix(shared): Render loop in useLocalStorage hook
I've emptied the useEffect array here, I'm sure the linter won't agree but at least it fixes a render loop that was nasty.
This commit is contained in:
parent
ee477ff3b2
commit
0dbf76c9bf
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export function useLocalStorage(key, initialValue) {
|
|||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}, [setReady, setValue, key, initialValue])
|
||||
}, []) // The linter will hate this, but this was cleared to stop a render loop
|
||||
|
||||
return [storedValue, setValue, ready]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue