State Management · Middle · Question 70 of 75

What happens when a React Router loader throws?

Explanation

Inside the boundary useRouteError() returns the error; isRouteErrorResponse distinguishes thrown responses like 404 from unexpected errors.

Further reading

Problem with a question

State Management · Middle · question 70

Test yourself

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

Take this quiz