From 8ad5f99c5532321006256b740a0180d638440b6f Mon Sep 17 00:00:00 2001 From: David Maskasky Date: Sat, 24 Aug 2024 15:06:09 -0700 Subject: [PATCH] fix: atomEffect supports recursion under jotai store2 --- 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 } }