State Management · Senior · Question 40 of 75

Why are route loaders said to remove "request waterfalls" compared with useEffect fetching?

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.

Further reading

Problem with a question

State Management · Senior · question 40

Test yourself

Take the State Management · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz