|
|
@ -52,6 +52,11 @@ class Bundle extends React.Component { |
|
|
|
load = (props) => { |
|
|
|
load = (props) => { |
|
|
|
const { fetchComponent, onFetch, onFetchSuccess, onFetchFail, renderDelay } = props || this.props; |
|
|
|
const { fetchComponent, onFetch, onFetchSuccess, onFetchFail, renderDelay } = props || this.props; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (fetchComponent === undefined) { |
|
|
|
|
|
|
|
this.setState({ mod: null }); |
|
|
|
|
|
|
|
return Promise.resolve(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onFetch(); |
|
|
|
onFetch(); |
|
|
|
|
|
|
|
|
|
|
|
if (Bundle.cache[fetchComponent.name]) { |
|
|
|
if (Bundle.cache[fetchComponent.name]) { |
|
|
|