Some checks to see whether stuff is still mounted when adding things.
This commit is contained in:
@@ -43,6 +43,7 @@ module.exports = {
|
||||
componentDidMount: function() {
|
||||
var that = this;
|
||||
setTimeout(function() {
|
||||
if (!that.isMounted()) return;
|
||||
that.setState({
|
||||
memberDict: that.roomMembers()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user