This commit is contained in:
lloydzhou
2024-09-04 13:00:18 +08:00
parent ed9aae531e
commit 53dcae9e9c
3 changed files with 7 additions and 7 deletions

View File

@@ -15,6 +15,7 @@ class IndexedDBStorage implements StateStorage {
try {
const _value = JSON.parse(value);
if (!_value?.state?._hasHydrated) {
console.warn("skip setItem", name);
return;
}
await set(name, value);