Revert to UNSAFE_componentWillMount where componentDidMount will not work

This commit is contained in:
Travis Ralston 2020-04-01 11:05:49 -06:00
parent 3f99332f4b
commit 8f04746e4e
7 changed files with 14 additions and 7 deletions

View file

@ -79,7 +79,8 @@ export default createReactClass({
contextType: MatrixClientContext,
},
componentDidMount: function() {
// TODO: [REACT-WARNING] Move this to constructor
UNSAFE_componentWillMount: function() {
this._cancelDeviceList = null;
const cli = this.context;