fix error
This commit is contained in:
@@ -8,7 +8,7 @@ export function useLocalStorage(key, initValue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (initValue) {
|
if (initValue) {
|
||||||
trySettingLocalStorage(key, initValue, setState);
|
trySettingLocalStorage(key, initValue, () => {});
|
||||||
}
|
}
|
||||||
return initValue;
|
return initValue;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user