How to load multiple resources in parallel in master detail resources
I have an api where resources are organized hierarchically, I want to build sane breadcrumbs with proper links and text labels of the parent resources, but I need to load those resources first:
I am doing something like this
- Can I more elegantly extract parameters from the current route
- Can I load in parallel instead of multiple
I am doing something like this
- Can I more elegantly extract parameters from the current route
/products/:product_id:/customers/:customer_id/:roles/:id ?- Can I load in parallel instead of multiple
useOne, using something like this https://tanstack.com/query/v4/docs/framework/react/guides/parallel-queries I could try to build an useResources, but I need to replicate same actions that useOne is doing ?