We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6097f0 commit 070d3adCopy full SHA for 070d3ad
src/asyncComponent.js
@@ -27,7 +27,7 @@ export default (loader, { placeholder } = {}) => {
27
}
28
29
component
30
- .then((module) => this.mounting && this.setState({ component: module.default }))
+ .then((module) => this.mounting && this.setState({ component: module.default || module }))
31
.catch(errorLoading);
32
33
0 commit comments