Skip to content

Commit

Permalink
feat: options add onLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
jinasonlin committed Sep 24, 2021
1 parent 34ac8ab commit 7057535
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/component/src/createLoadable.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ function createLoadable({
onLoad(this.state.result, this.props)
})
}
if (options.onLoad) {
setTimeout(() => {
options.onLoad(this.state.result, this.props)
})
}
}

/**
Expand Down

0 comments on commit 7057535

Please sign in to comment.