-
-
Notifications
You must be signed in to change notification settings - Fork 5k
beforeRouteEnter next callback is not called (in this very specific async situation) #2082
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
A temporary fix is to use |
hmm. Since the router-view is not is toggled off with a |
The issue isn't solely the Since this issue requires a very specific setup, I doubt it would affect many people, so it might not be worth fixing, but I thought I'd mention it for what it's worth. Also the workaround works fine for me. |
Not sure should i create new ticket or not... Its about a component beforeRouteEnter guard I'm using same component for different routes with different meta.content(if its important) If I initially load page from item, callback for item works |
Version
3.0.1
Reproduction link
http://jsfiddle.net/df4Lnuw6/271/
Steps to reproduce
<router-view v-if="ready">
in the root component's template withready
initiallyfalse
./
whose component has abeforeRouteEnter
hook.created
hook:/?x=1
(this causes the same component to be reused).ready
totrue
.What is expected?
The callback function passed to
next
in thebeforeRouteEnter
hook should be called.What is actually happening?
The callback function passed to
next
in thebeforeRouteEnter
is not called.The text was updated successfully, but these errors were encountered: