Error Subroutes
Let’s talk about error subroutes and how to use them.
How error subroutes work
Error subroutes are activated when a model hook throws an error, either because the backend returned an error response or because the application code, itself, ran into a problem.
Error subroutes work exactly the same way as loading subroutes:
- An
error
event is fired on the route where the error was produced.
Access this course and 1400+ top-rated courses and projects.