fix(org): Avoid recreating noAccount object on each render
This commit is contained in:
parent
0dbf76c9bf
commit
731c246e88
2 changed files with 11 additions and 2 deletions
|
@ -32,7 +32,7 @@ export function useLocalStorage(key, initialValue) {
|
|||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}, []) // The linter will hate this, but this was cleared to stop a render loop
|
||||
}, [setReady, setValue, key, initialValue])
|
||||
|
||||
return [storedValue, setValue, ready]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue