Replies: 1 comment 5 replies
-
Yep, that should work. However, user2 could be in success state while user1 is still loading because the queries run in parallel |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this was within one of the discussions already answered. Feel free to just link me to it. Didnt see on the docs page.
Wanted to confirm that useQueries returns them in order of execution. So, for example, if I have two users in an array, I can safely destructure
const [user1, user2] = useQueries([user1, user2].map(user =>..))
Beta Was this translation helpful? Give feedback.
All reactions