Skip to content

Commit 869f3f7

Browse files
committed
comments
1 parent 8200a35 commit 869f3f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/view.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export default {
5454
}
5555
}
5656

57+
// also regiseter instance in prepatch hook
58+
// in case the same component instance is reused across different routes
5759
;(data.hook || (data.hook = {})).prepatch = (_, vnode) => {
5860
matched.instances[name] = vnode.componentInstance
5961
}

0 commit comments

Comments
 (0)