Skip to content

Commit 4e98aeb

Browse files
committed
fix: update snapshot
1 parent 08ba7d9 commit 4e98aeb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ function createStore({
6262
onStoreChange()
6363
console.groupEnd()
6464
})
65-
} else onStoreChange()
65+
} else {
66+
transient = snapshot = state
67+
onStoreChange()
68+
}
6669
}
6770
console.groupEnd()
6871
})

0 commit comments

Comments
 (0)