State Management · Senior · Question 40 of 75
Why are route loaders said to remove "request waterfalls" compared with useEffect fetching?
- ✓Correct answer: The router knows all matched routes and starts their loaders in parallel before rendering
- 2Loaders cache responses forever
- 3Loaders run in a Web Worker
Explanation
With effects a parent renders, then fetches, then renders a child that fetches again. Nested route loaders for /users/:id/orders run concurrently on navigation, and code-split route modules can load in parallel with data.