mirror of https://github.com/vector-im/riot-web
mounted can be set straight in componentWillMount
parent
e8b4770940
commit
0727e0f8d3
|
@ -42,7 +42,7 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
this._mounted = false;
|
this._mounted = true;
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
if (cli.hasLazyLoadMembersEnabled()) {
|
if (cli.hasLazyLoadMembersEnabled()) {
|
||||||
// true means will not show a spinner but the
|
// true means will not show a spinner but the
|
||||||
|
@ -73,10 +73,6 @@ module.exports = React.createClass({
|
||||||
// cli.on("Room.timeline", this.onRoomTimeline);
|
// cli.on("Room.timeline", this.onRoomTimeline);
|
||||||
},
|
},
|
||||||
|
|
||||||
componentDidMount: async function() {
|
|
||||||
this._mounted = true;
|
|
||||||
},
|
|
||||||
|
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
this._mounted = false;
|
this._mounted = false;
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
|
|
Loading…
Reference in New Issue