Skip to content

Commit

Permalink
fix: 修复wujie-react偶现无法加载子应用元素 (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
PgFish authored Jun 30, 2023
1 parent 30bf8c1 commit f927505
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/wujie-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ export default class WujieReact extends React.PureComponent {
console.log(error);
}
}

execStartApp = () => {
this.startAppQueue = this.startAppQueue.then(this.startApp);
};
componentDidMount () {
this.startApp();
}

render() {
this.execStartApp();
const { width, height } = this.props;
const { myRef: ref } = this.state;
return <div style={{ width, height }} ref={ref} />;
Expand Down Expand Up @@ -66,4 +65,4 @@ const propTypes = {
activated: PropTypes.func,
deactivated: PropTypes.func,
loadError: PropTypes.func,
}
}

0 comments on commit f927505

Please sign in to comment.