From fe6f9437ab141b3a433eed66faee60c1d8924a0d Mon Sep 17 00:00:00 2001 From: nickago Date: Thu, 9 Jul 2015 14:55:29 -0700 Subject: Added comments for the force update functions --- web/react/components/post_list.jsx | 1 + web/react/components/sidebar_right.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 2cccdff22..177e4a1db 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -196,6 +196,7 @@ module.exports = React.createClass({ } this.setState(newState); } else { + // Updates the timestamp on each post this.forceUpdate() } }, diff --git a/web/react/components/sidebar_right.jsx b/web/react/components/sidebar_right.jsx index baffa0ab7..60c8ffae6 100644 --- a/web/react/components/sidebar_right.jsx +++ b/web/react/components/sidebar_right.jsx @@ -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) { -- cgit v1.2.3-1-g7c22