We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd95f19 commit 8c32738Copy full SHA for 8c32738
src/RouterView.ts
@@ -55,7 +55,7 @@ export const RouterViewImpl = defineComponent({
55
// when the same component is used in different routes, the onVnodeMounted
56
// hook doesn't trigger, so we need to observe the changing route to update
57
// the instance on the record
58
- watch(matchedRouteRef, (to, from) => {
+ watch(matchedRouteRef, to => {
59
const currentName = props.name
60
// to can be null if there isn't a matched route, e.g. not found
61
if (to && !to.instances[currentName]) {
0 commit comments