Skip to content

Commit

Permalink
fix type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Nov 14, 2024
1 parent e900fbc commit 484b5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vanilla/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,10 @@ const buildStore = (
return returnAtomValue(aState)
} finally {
if (isSync) {
addDependency(pending, atom, atomState, a, aState!)
addDependency(pending, atom, atomState, a, aState)
} else {
const pending = createPending()
addDependency(pending, atom, atomState, a, aState!)
addDependency(pending, atom, atomState, a, aState)
mountDependencies(pending, atom, atomState)
flushPending(pending)
}
Expand Down

0 comments on commit 484b5c4

Please sign in to comment.