Skip to content

Commit

Permalink
feat: support strict mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 13, 2021
1 parent df045a6 commit 87e1b94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ export default function dynamicLoadable({
constructor(props) {
super(props);
this.updateState = this.updateState.bind(this);
this.state = {
Component,
};
this.state = { Component };
}

componentDidMount() {
AsyncRouteComponent.load().then(this.updateState);
}

Expand Down

0 comments on commit 87e1b94

Please sign in to comment.