Some checks to see whether stuff is still mounted when adding things.
This commit is contained in:
parent
30a9436485
commit
9aa9a60333
2 changed files with 8 additions and 3 deletions
|
@ -43,6 +43,7 @@ module.exports = {
|
|||
componentDidMount: function() {
|
||||
var that = this;
|
||||
setTimeout(function() {
|
||||
if (!that.isMounted()) return;
|
||||
that.setState({
|
||||
memberDict: that.roomMembers()
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue