useQueries dependency on previous useQuery not working correctly (scoping issue)?
I have followed the documentation (https://tanstack.com/query/v4/docs/react/guides/dependent-queries#usequeries-dependent-query) exactly as far as I can tell and yet the dependent query never fires even after the data is available as shown by console.log. What am I missing here?
Dependent Queries | TanStack Query Docs
useQuery dependent Query
Dependent (or serial) queries depend on previous ones to finish before they can execute. To achieve this, it's as easy as using the enabled option to tell a query when it is ready to run:
2 Replies
other-emeraldOP•3y ago
clips in the dependent query is always treated as undefinedother-emerald•3y ago
should work; show a reproduction please