Fix create-react-class regression.
Can't call setState in c'tor
This commit is contained in:
parent
87b72de25f
commit
8d03799ffe
1 changed files with 4 additions and 0 deletions
|
@ -124,7 +124,11 @@ export default class LoginComponent extends React.Component {
|
|||
'm.login.cas': () => this._renderSsoStep("cas"),
|
||||
'm.login.sso': () => this._renderSsoStep("sso"),
|
||||
};
|
||||
}
|
||||
|
||||
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
|
||||
// eslint-disable-next-line camelcase
|
||||
UNSAFE_componentWillMount() {
|
||||
this._initLoginLogic();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue