Skip to content

Commit

Permalink
fix: make sure route component is defined (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: 寇超 <kouchao@xindong.com>
Co-authored-by: EGOIST <0x142857@gmail.com>
  • Loading branch information
3 people committed Aug 12, 2021
1 parent c677dff commit e49a57c
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 @@ -84,7 +84,7 @@ function installRouterPrefetch(
.flat()
.filter(Component => {
return (
Component.cid === undefined && typeof Component === 'function'
typeof Component === 'function' && Component.cid === undefined
)
})
},
Expand Down

0 comments on commit e49a57c

Please sign in to comment.