Async atoms in v2.0 atomsWithQuery #1615
Replies: 3 comments 6 replies
-
Thanks for opening a discussion about v2 API. That's exactly the point of the pre-release. Before going into some ideas, the pattern using Improve
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@dai-shi such an awesome lib!!! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
According to the migration guide the new, 2.0 way of getting derived async atoms looks like this:
I'm a bit confused how to migrate from the old
atomWithQuery
to the new 2.0atomsWithQuery
. If I have a query atom that expects an async atom, this has worked for me in a previous version:What's the best/recommended way to go about that? If you need a better repro let me know.
Beta Was this translation helpful? Give feedback.
All reactions