-
Notifications
You must be signed in to change notification settings - Fork 13
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
'route' watch triggered after 'created' hook #5
Comments
@jorups Thank you for a report! I will try to find free time to fix it |
Hi, @jorups ! Can you provide reproduction link for this issue. As I see, 'breadcrumbChanged' event triggered before and after watcher for $route. Thank you in advance |
I think that is the case when |
The fix seems to be watch: {
$route() {
// Set empty component's 'parentsDynamicRoutes' property on each route change
this.parentsDynamicRoutes = [];
},
}, with beforeRouteUpdate() {
// Set empty component's 'parentsDynamicRoutes' property on each route change
this.parentsDynamicRoutes = [];
}, Edit: Hmm, that doesn't work when jumping to |
Also hot reload empties that list. |
I get the same behaviour, was there a fix for this? |
@rosshulford No, there wasn't. |
Using 'parentsList' for dynamic breadcrumbs '$route' watch is triggered after 'breadcrumbChanged' event when navigating using router.push/router.replace. As '$route' watch clears 'parentsDynamicRoutes' therefore only current breadcrumb is generated not the full trail.
The text was updated successfully, but these errors were encountered: