Serialised loaders
What is the new way to wait for a parent route loader to finish it's promise and use its result in a loader in a child route?
1 Reply
extended-salmon•4y ago
We added this, but to properly support SSR, we needed to remove it
The official way forward will be similar to next and remix.
You'll need to extract the shared logic out of both routes, then reference that logic in your individual loaders
If you're worried about duplicated work, then the official way forward would be to use something like React Query to deduplicate parallel requests