Skip to content

Commit

Permalink
fix: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed May 29, 2022
1 parent 08ba7d9 commit 4e98aeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ function createStore({
onStoreChange()
console.groupEnd()
})
} else onStoreChange()
} else {
transient = snapshot = state
onStoreChange()
}
}
console.groupEnd()
})
Expand Down

0 comments on commit 4e98aeb

Please sign in to comment.