-
-
Notifications
You must be signed in to change notification settings - Fork 5k
beforeRouteEnter not triggered when component is reused #1322
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
BTW you can provide versions when using unpkg.com: http://jsfiddle.net/posva/xjoojctq/ |
@posva I'm not sure what you mean, I've included the script like that to switch between two vue-router versions within one fiddle. |
Sorry, it wasn't clear, I meant that you don't need to make it complicated, you can just pass the version in the script tag, it'll be enough to check 🙂 |
Ah, I understand. Thanks for clearing things up. |
It looks like it's not only the |
but if |
Version
2.4.0
Reproduction link
http://jsfiddle.net/yj21tp09/
Steps to reproduce
What is expected?
In older versions I was able to reuse a component with different paths. The
beforeRouteEnter
hook was triggered nonetheless.What is actually happening?
In 2.4.0 this behaviour is broken. The hook isn't called anymore.
This seems to be a direct consequence of #750 as
match.instances
is empty for the route changes that don't work.The text was updated successfully, but these errors were encountered: