How do I get the loading of one of the queries that are inside useQueries? #9461
Unanswered
Vittor-Emanoel
asked this question in
General
Replies: 1 comment
-
|
you can return the queryKey we pass into the queryFn as part of your return value to identify it. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello, I hope you're doing well.
I'm currently working with
useQueriesto perform multiple parallel requests based on a list of items. For each item, I generate a uniquequeryKeyand a correspondingqueryFn.The challenge I'm facing is identifying which of these individual queries are currently loading, since
useQueriesreturns an array and doesn't directly expose the loading state per identifier.Here's a simplified pseudocode example of how I'm structuring it:
Beta Was this translation helpful? Give feedback.
All reactions