diff --git a/packages/storage/lib/base/base.ts b/packages/storage/lib/base/base.ts index b6e89457f..0ed6cccbb 100644 --- a/packages/storage/lib/base/base.ts +++ b/packages/storage/lib/base/base.ts @@ -102,7 +102,7 @@ export function createStorage(key: string, fallback: D, config?: Sto }; const set = async (valueOrUpdate: ValueOrUpdate) => { - if (initedCache === false) { + if (!initedCache) { cache = await get(); } cache = await updateCache(valueOrUpdate, cache);