You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will allow asynchronous code to prevent entering a new route, while allowing the current route component to exit.
Imagine you have a route component that requires some data to be fetched from the server before entering. If the route params change and the data needs to be refreshed, there is currently not a router hook that will allow the current component to transition out before fetching the new data.