Skip to content

Commit

Permalink
fix: ensure the Component is lazy loaded, closes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed May 7, 2019
1 parent 51c8df5 commit 5887219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function installRouterPrefetch(
},
getComponents() {
return this.$router.getMatchedComponents(this.to).filter(Component => {
return typeof Component === 'function'
return Component.cid === undefined && typeof Component === 'function'
})
},
linkPrefetch() {
Expand Down

0 comments on commit 5887219

Please sign in to comment.