Ensure that persisted state is kept in sync (#12596)

This commit is contained in:
Nicolas Mowen
2024-07-24 11:17:32 -06:00
committed by GitHub
parent 1bd3285679
commit 5c15659a34
2 changed files with 12 additions and 8 deletions

View File

@@ -34,7 +34,6 @@ export function usePersistence<S>(
useEffect(() => {
setLoaded(false);
setInternalValue(defaultValue);
async function load() {
const value = await getData(key);