Skip to content

Commit 5887219

Browse files
committed
fix: ensure the Component is lazy loaded, closes #7
1 parent 51c8df5 commit 5887219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function installRouterPrefetch(
7474
},
7575
getComponents() {
7676
return this.$router.getMatchedComponents(this.to).filter(Component => {
77-
return typeof Component === 'function'
77+
return Component.cid === undefined && typeof Component === 'function'
7878
})
7979
},
8080
linkPrefetch() {

0 commit comments

Comments
 (0)