We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.0.0-rc.5
https://github.com/ste-xx/vue-router-example
Create View with two router-views. One is named (e.g. toolbar), one is default.
The named view, used a shared component (e.g toolbar.vue).
The default view used different components. (e.g, home, home2)
Add onBeforeRouteLeave to the default view components.
E.g:
Add onBeforeRouteLeave to home.
Add onBeforeRouteLeave to home2.
onBeforeRouteLeave will always triggered if the route changes
onBeforeRouteLeave will not always triggered if the route changes.
The text was updated successfully, but these errors were encountered:
Workaround: wrap onBeforeRouteLeave in a onMounted.
Sorry, something went wrong.
fix(guards): correctly reuse guards
eb383da
Fix #614
fix(guards): correctly reuse guards (#616)
95d44c8
Successfully merging a pull request may close this issue.
Version
4.0.0-rc.5
Reproduction link
https://github.com/ste-xx/vue-router-example
Steps to reproduce
Create View with two router-views.
One is named (e.g. toolbar), one is default.
The named view, used a shared component (e.g toolbar.vue).
The default view used different components. (e.g, home, home2)
Add onBeforeRouteLeave to the default view components.
E.g:
Add onBeforeRouteLeave to home.
Add onBeforeRouteLeave to home2.
What is expected?
onBeforeRouteLeave will always triggered if the route changes
What is actually happening?
onBeforeRouteLeave will not always triggered if the route changes.
The text was updated successfully, but these errors were encountered: