From 12fa69de09d26987d2c1f0b5a88dcd3819e0aaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=E2=9D=A4=EF=B8=8F=20=E2=98=AE=EF=B8=8F=20=E2=9C=8B?= <6723574+louisgv@users.noreply.github.com> Date: Thu, 8 Feb 2024 08:37:12 +0700 Subject: [PATCH] fix type --- src/hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)