Skip to content

Commit

Permalink
fix: atomEffect supports recursion under jotai store2 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaskasky authored Aug 24, 2024
1 parent fafa45c commit 35d9810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/atomEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export function atomEffect(
++ref.inProgress
return ref.set(...args)
} finally {
Array.from(currDeps.keys(), get)
--ref.inProgress
}
}
Expand Down

0 comments on commit 35d9810

Please sign in to comment.