The prev value passed to the unwrap
fallback is still undefined after the async atom resolves.
#2756
Replies: 1 comment 12 replies
-
Thanks for reporting. I wasn't exactly aware this behavioral change. 🤦♂️ This can probably be an intentional change in #2695.
If you remove |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
In v2.9.3, if an unwrap atom is called after an async atom resolves, the unwrap atom will not fallback.
This is the expected behavior.
In v2.10.0, after the async atom resolves, the unwrap atom's fallback is executed and undefined is passed as the prev value.
Reproduction code
Reproduction Link
https://codesandbox.io/p/sandbox/festive-curran-forked-gh8nnz
Beta Was this translation helpful? Give feedback.
All reactions