Does the loader guarantee that its internal function completes before the component is rendered?
In my app, I have logic that needs to perform a health check from the server when accessing a specific route, and then redirect based on the result.
If I handle this branching inside the loader, I’m not sure if I can guarantee that the health check response will be completed.
Would it be more appropriate to use beforeLoad instead?
1 Reply
xenial-black•2mo ago
It depends of what you want to happen if the healthcheck fail or takes a long time