dependant queries router loading
https://github.com/TanStack/router/discussions/922
is there any solution to this?
GitHub
Dependent Queries · TanStack router · Discussion #922
Hey there, I'm currently looking at dependent queries using react-query. My use case is fetching items, each of which belonging to a group. I want to display the group name along with item data...
2 Replies
wise-white•15mo ago
So, based on the result you want to fetch another query?
Why not await it in the loader and conditionally make a check?
If its completely dynamic, its a matter of creating an array of promises to await on.
inland-turquoiseOP•15mo ago
so the query that I await queryCLient that thing I don't need to return right?
perfect