Added comments for the force update functions
Этот коммит содержится в:
@@ -196,6 +196,7 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
} else {
|
} else {
|
||||||
|
// Updates the timestamp on each post
|
||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ module.exports = React.createClass({
|
|||||||
UserStore.removeStatusesChangeListener(this._onChange);
|
UserStore.removeStatusesChangeListener(this._onChange);
|
||||||
},
|
},
|
||||||
_onChange: function() {
|
_onChange: function() {
|
||||||
|
// Updates the timestamp on each post
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
},
|
},
|
||||||
_onSelectedChange: function(from_search) {
|
_onSelectedChange: function(from_search) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user