Added comments for the force update functions

This commit is contained in:
nickago
2015-07-09 14:55:29 -07:00
parent 702112dfb3
commit fe6f9437ab
2 changed files with 2 additions and 0 deletions

View File

@@ -196,6 +196,7 @@ module.exports = React.createClass({
}
this.setState(newState);
} else {
// Updates the timestamp on each post
this.forceUpdate()
}
},

View File

@@ -24,6 +24,7 @@ module.exports = React.createClass({
UserStore.removeStatusesChangeListener(this._onChange);
},
_onChange: function() {
// Updates the timestamp on each post
this.forceUpdate();
},
_onSelectedChange: function(from_search) {