You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this plugin https://github.com/samturrell/vue-breadcrumbs but have a problem by getting the route params using for breadcrumb.
The problem, as you can see on open issue samturrell/vue-breadcrumbs#1 , is that vue-router freeze the object and it's impossibile to manage params.
It's easy to reproduce, just install plugin and create two route with dynamic params. Links aren't replace when found :id (or something) but they keeps string literally.
You can find example in link
What is expected?
Get route params chain
What is actually happening?
Just explain into steps to reproduce
The text was updated successfully, but these errors were encountered:
furyscript
changed the title
Vue router
Vue route object gets freeze by vue's core
Apr 26, 2018
Even if it's related to Vue, it should be reported to the vue-router repo.
The route object is an immutable mapping of the current URL. This is by design. You should never attempt to mutate the route object. Instead, trigger a navigation with $router.push.
Version
2.5.13
Reproduction link
https://github.com/samturrell/vue-breadcrumbs/tree/master/example
Steps to reproduce
I'm using this plugin https://github.com/samturrell/vue-breadcrumbs but have a problem by getting the route params using for breadcrumb.
The problem, as you can see on open issue samturrell/vue-breadcrumbs#1 , is that vue-router freeze the object and it's impossibile to manage params.
It's easy to reproduce, just install plugin and create two route with dynamic params. Links aren't replace when found
:id
(or something) but they keeps string literally.You can find example in link
What is expected?
Get route params chain
What is actually happening?
Just explain into steps to reproduce
The text was updated successfully, but these errors were encountered: