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 } }