Skip to content

Commit

Permalink
fix: unsubscribe needs to be called
Browse files Browse the repository at this point in the history
  • Loading branch information
peterferguson authored Aug 13, 2024
1 parent 59777a9 commit b303460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomWithMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function atomWithMutation<
set(state)
})
return () => {
unsubscribe
unsubscribe()
observer.reset()
}
}
Expand Down

0 comments on commit b303460

Please sign in to comment.