Skip to content

Commit

Permalink
feat(props argument added to preload(props)):
Browse files Browse the repository at this point in the history
  • Loading branch information
faceyspacey committed Jun 30, 2017
1 parent ff097e9 commit c9e78f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export default function universal<Props: Props>(
return class UniversalComponent extends React.Component<void, Props, *> {
_mounted: boolean

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

0 comments on commit c9e78f1

Please sign in to comment.