Skip to content

Commit e49a57c

Browse files
kouchao寇超egoist
authored
fix: make sure route component is defined (#37)
Co-authored-by: 寇超 <[email protected]> Co-authored-by: EGOIST <[email protected]>
1 parent c677dff commit e49a57c

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
@@ -84,7 +84,7 @@ function installRouterPrefetch(
8484
.flat()
8585
.filter(Component => {
8686
return (
87-
Component.cid === undefined && typeof Component === 'function'
87+
typeof Component === 'function' && Component.cid === undefined
8888
)
8989
})
9090
},

0 commit comments

Comments
 (0)