From b3034605ae592dbe308256bd58f146d1f1c5a73e Mon Sep 17 00:00:00 2001 From: Peter Ferguson Date: Tue, 13 Aug 2024 10:41:02 +0100 Subject: [PATCH] fix: unsubscribe needs to be called --- src/atomWithMutation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/atomWithMutation.ts b/src/atomWithMutation.ts index 722ec2f..d2f44e1 100644 --- a/src/atomWithMutation.ts +++ b/src/atomWithMutation.ts @@ -77,7 +77,7 @@ export function atomWithMutation< set(state) }) return () => { - unsubscribe + unsubscribe() observer.reset() } }