1
0
Fork 0

fix(org): Avoid recreating noAccount object on each render

This commit is contained in:
joostdecock 2023-03-12 18:49:09 +01:00
parent 0dbf76c9bf
commit 731c246e88
2 changed files with 11 additions and 2 deletions

View file

@ -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]
}