Replies: 1 comment 2 replies
-
sine
|
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi,
I have a component which has a dependent and/or parallel query. Initially, I fetch the user data, and this user data contains an ids array, and these ids have to be used in a parallel query.
Following the docs for Dynamic parallel queries and Dependent queries, this is what I have now.
I want useQueries to run only when user data is resolved. But I'm getting an error in
siteIds.map
whensiteIds
is undefined. This is understandable assiteIds
will be undefined in the initial render. I tried usingenabled: !!siteIds
but to no effect.Any help appreciated, thanks.
Beta Was this translation helpful? Give feedback.
All reactions