Async atom causes unnecessary updates #2740
Unanswered
angrypie
asked this question in
Bug report
Replies: 1 comment 5 replies
-
Can you reproduce the issue without jotai-effect? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
I'm experiencing an issue where an atom containing an async operation is updating more frequently than expected. The intention is to update the
minutes
value once per minute, but it's updating much more frequently.The issue seems to be resolved when using
unwrap
on theasyncResourceAtom
.Is it something about checking equality of current and previous state in async atom?
Reproduction Link
https://codesandbox.io/p/sandbox/objective-moon-6w2f2x
Beta Was this translation helpful? Give feedback.
All reactions