Skip to content

Commit 3ac154b

Browse files
committed
Add comment to update shouldComponentUpdate
if adding new props
1 parent 47ddc6d commit 3ac154b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/components/structures/LeftPanel.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import VectorConferenceHandler from '../../VectorConferenceHandler';
3030
var LeftPanel = React.createClass({
3131
displayName: 'LeftPanel',
3232

33+
// NB. If you add props, don't forget to update
34+
// shouldComponentUpdate!
3335
propTypes: {
3436
collapsed: React.PropTypes.bool.isRequired,
3537
},

0 commit comments

Comments
 (0)