Remove RoomListStore listener
This caused the the RoomList component to leak (although in practice only accross logins because that's the only time it's unmounted)
This commit is contained in:
parent
ca763faf96
commit
ceec405519
2 changed files with 5 additions and 1 deletions
|
@ -191,6 +191,10 @@ module.exports = React.createClass({
|
|||
this._tagStoreToken.remove();
|
||||
}
|
||||
|
||||
if (this._roomListStoreToken) {
|
||||
this._roomListStoreToken.remove();
|
||||
}
|
||||
|
||||
if (this._groupStoreTokens.length > 0) {
|
||||
// NB: GroupStore is not a Flux.Store
|
||||
this._groupStoreTokens.forEach((token) => token.unregister());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue