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
Normally, one wouldn't put the RouterView in the component option, it should just be omitted and it will work. Did you find any outdated documentation showing to use RouterView like that?
I know, it used to be necessary, but I just wanted to demonstrate that the issue only happens when using a nested RouterView.
To keep it minimal I used RouterView directly, not using it inside of e.g layout component.
Version
4.1.6
Reproduction link
stackblitz.com
--> Open in New Tab and open Console in DevTools.
Steps to reproduce
useRoute().params.param
insideParam.vue
What is expected?
Watching
useRoute().params.param
does not trigger when going from/routerView/123
to/routerView
.What is actually happening?
useRoute().params.param
evaluates toundefined
when navigating from/routerView/123
to/routerView
.Additional comments
When a nested
<router-view />
(component: RouterView
) isn't used, it works as expected.The text was updated successfully, but these errors were encountered: