The value of unwrap atom is not updated when unwrap atom is referenced in atomEffect. #2914
Unanswered
3846masa
asked this question in
Bug report
Replies: 1 comment 1 reply
-
Thanks for reporting, I'll take a look. I've started debugging this, it looks like effect is not getting called again. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
When calling an unwrapped atom in an atomEffect, the value of the unwrapped atom is not updated.
This issue has been occurring since v2.10.2, so this is probably due to a change in the timing of the setSelf call, I think.
Reproduction code
Jotai v2.10.1
Jotai v2.10.2 ~ v2.11.0 (latest)
Reproduction Link
https://codesandbox.io/p/sandbox/5g2z6y
Beta Was this translation helpful? Give feedback.
All reactions