@ykaragol wrote:
In a route’s model hook, sometimes promises may fail. In this cases:
- if the user are transitioning from one route to another: abort transition so that stay at the previous route and show an error popup.
- if the user is directly opening that route from an outside link: show the error substate.
How can I handle both cases? In the error hook, is there a way to understand whether the previous route is transitioning from somewhere else or not?
Posts: 1
Participants: 1