aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/Feeds.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index 11466d233..89eb7774f 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -72,6 +72,12 @@ class Feed extends React.Component {
componentDidMount() {
this.loadMessages(this.props.visitor.hash, this.props.location.search);
}
+
+ shouldComponentUpdate(nextProps, nextState) {
+ return this.props.visitor.uid !== nextProps.visitor.uid
+ || this.state !== nextState || this.props.location !== nextProps.location;
+ }
+
getSnapshotBeforeUpdate(prevProps) {
return (this.props.location.search != prevProps.location.search
|| this.props.visitor != prevProps.visitor || this.props.query.search != prevProps.query.search);