Skip to content

Conversation

@indesignlatam
Copy link

No description provided.

robcalcroft and others added 3 commits February 15, 2017 20:57
* When a row was selected it was not rerendered.
* Enhanced performance issue
shouldComponentUpdate(nextProps, nextState) {
// This is a performance check as this sometimes gets updated often
if (nextProps.selectedOptions.length === this.props.selectedOptions.length) {
if (nextProps.selectedOptions === this.props.selectedOptions &&
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this if look like this please:

if (
  (variable === variable) &&
  (varible1 === variable1)
) {
  // do things here
}

I prefer this more verbose option for multiline stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants