From 3ac154b7da0dfaefeffe1ea2570c378a86581e8d Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 11 Sep 2017 18:30:43 +0100 Subject: [PATCH] Add comment to update shouldComponentUpdate if adding new props --- src/components/structures/LeftPanel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/structures/LeftPanel.js b/src/components/structures/LeftPanel.js index 23dba3dbb5..1988dc5ef9 100644 --- a/src/components/structures/LeftPanel.js +++ b/src/components/structures/LeftPanel.js @@ -30,6 +30,8 @@ import VectorConferenceHandler from '../../VectorConferenceHandler'; var LeftPanel = React.createClass({ displayName: 'LeftPanel', + // NB. If you add props, don't forget to update + // shouldComponentUpdate! propTypes: { collapsed: React.PropTypes.bool.isRequired, },