T
TanStack3y ago
foreign-sapphire

Child route `loader` is executed before parent route `loader` is completed

I have two routes, parent and child, both of them have loader async function. For some reason, the loader execution starts on the parent route, but when there's an async operation, it starts to execute the child loader function. This is obviously not the behavior I expected to. Is that intended? Is that an open bug? Or it happens only on my environment somehow? Version 0.0.1-beta.89
3 Replies
constant-blue
constant-blue3y ago
Loaders are intended to run in parallel
foreign-sapphire
foreign-sapphireOP3y ago
@Paweł Błaszczyk There is a way to block it somehow? Cuz in my current hierarchy, the child route depends on the parent route.
constant-blue
constant-blue3y ago
Tbh I don't think there is a option for this. If you'd describe an use case I could try to advice some solution

Did you find this page helpful?