Skip to content

Commit 87e1b94

Browse files
committed
feat: support strict mode.
1 parent df045a6 commit 87e1b94

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/core/src/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ export default function dynamicLoadable({
4141
constructor(props) {
4242
super(props);
4343
this.updateState = this.updateState.bind(this);
44-
this.state = {
45-
Component,
46-
};
44+
this.state = { Component };
45+
}
46+
47+
componentDidMount() {
4748
AsyncRouteComponent.load().then(this.updateState);
4849
}
4950

0 commit comments

Comments
 (0)