From 35d9810f4ad96dde12c05b50ad544648f9372b9f Mon Sep 17 00:00:00 2001 From: David Maskasky Date: Sat, 24 Aug 2024 15:56:24 -0700 Subject: [PATCH] fix: atomEffect supports recursion under jotai store2 (#43) --- src/atomEffect.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/atomEffect.ts b/src/atomEffect.ts index b771a92..acfac3a 100644 --- a/src/atomEffect.ts +++ b/src/atomEffect.ts @@ -75,6 +75,7 @@ export function atomEffect( ++ref.inProgress return ref.set(...args) } finally { + Array.from(currDeps.keys(), get) --ref.inProgress } }