-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Add a way to catch a route cancel #2011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Use |
This also occurs on trying to go to another route but which redirects to itself. |
@JounQin mhh, that may be different though. Let me give it a second look |
@JounQin wrote:
Second this... there's no way to catch redirect to itself |
Closing in favour of #2012 |
Uh oh!
There was an error while loading. Please reload this page.
There are occasions where a route should be handled everytime it’s considered. For example, I’ve seen it suggested that VueRouter could be used to show a loading indicator by doing the following:
A route can be cancelled in a component’s
beforeRouteEnter
method withnext(false)
, butAfterEach
won’t fire since the route never actually loaded and the loading indicatior is stuck.Something like that would be great:
The text was updated successfully, but these errors were encountered: