diff --git a/src/hook.ts b/src/hook.ts index ee083c9..a075dee 100644 --- a/src/hook.ts +++ b/src/hook.ts @@ -30,7 +30,7 @@ export const useStorage = (rawKey: RawKey, onInit?: Setter) => { const key = isObjectKey ? rawKey.key : rawKey // Render state - const [renderValue, setRenderValue] = useState(onInit) + const [renderValue, setRenderValue] = useState(onInit) // Use to ensure we don't set render state after unmounted const isMounted = useRef(false)