Skip to content

Commit

Permalink
feat($preload): return a promise from preload
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey committed Jun 30, 2017
1 parent c9e78f1 commit 1a6d53b
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 @@ -64,7 +64,7 @@ export default function universal<Props: Props>(
_mounted: boolean

static preload(props?: Props) {
requireAsync(props).catch(e => {
return requireAsync(props).catch(e => {
if (DEV) console.warn('[react-universal-component] preload failed:', e)
})
}
Expand Down

0 comments on commit 1a6d53b

Please sign in to comment.