[BEST PRACTICE] - Interdependent queries in the page loader function
Hi guys ! 
I'm wondering what is the best way to fetch multiple data, using TanStack Query, in the page loader function ? Note that almost every request i need, depends on the result of the request n-1
I would do something like :
But it feels wrong
It might be a misconception of how my API is made and the data is returned
I'm wondering what is the best way to fetch multiple data, using TanStack Query, in the page loader function ? Note that almost every request i need, depends on the result of the request n-1
I would do something like :
But it feels wrong
It might be a misconception of how my API is made and the data is returned