We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b9abc commit 23bedc9Copy full SHA for 23bedc9
src/components/view.js
@@ -52,7 +52,11 @@ export default {
52
// this will be called in the instance's injected lifecycle hooks
53
data.registerRouteInstance = (vm, val) => {
54
// val could be undefined for unregistration
55
- if (matched.instances[name] !== vm) {
+ const current = matched.instances[name]
56
+ if (
57
+ (val && current !== vm) ||
58
+ (!val && current === vm)
59
+ ) {
60
matched.instances[name] = val
61
}
62
0 commit comments