Some checks to see whether stuff is still mounted when adding things.

This commit is contained in:
David Baker 2015-06-25 17:52:40 +01:00
parent 30a9436485
commit 9aa9a60333
2 changed files with 8 additions and 3 deletions

View file

@ -43,6 +43,7 @@ module.exports = {
componentDidMount: function() {
var that = this;
setTimeout(function() {
if (!that.isMounted()) return;
that.setState({
memberDict: that.roomMembers()
});