From 0727e0f8d3c0a6751c2092c2479682a54135f7d4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 17 Sep 2018 20:02:15 +0200 Subject: [PATCH] mounted can be set straight in componentWillMount --- src/components/views/rooms/MemberList.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index f70347a449..8120ee5747 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -42,7 +42,7 @@ module.exports = React.createClass({ }, componentWillMount: function() { - this._mounted = false; + this._mounted = true; const cli = MatrixClientPeg.get(); if (cli.hasLazyLoadMembersEnabled()) { // true means will not show a spinner but the @@ -73,10 +73,6 @@ module.exports = React.createClass({ // cli.on("Room.timeline", this.onRoomTimeline); }, - componentDidMount: async function() { - this._mounted = true; - }, - componentWillUnmount: function() { this._mounted = false; const cli = MatrixClientPeg.get();