You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No obligation here but would suggest flattening this for readability.
Same comment applies to other shouldComponentUpdate.
shouldComponentUpdate(nextProps) {
if (this.props.modelData !== nextProps.modelData) {
return true;
}
// if one is defined but not the other (XOR)
if (this.props.selectedAtomIds ? !nextProps.selectedAtomIds : nextProps.selectedAtomIds) {
return true;
}
// etc.
}
No obligation here but would suggest flattening this for readability.
Same comment applies to other
shouldComponentUpdate
.Originally posted by @Marc-Andre-Rivet in #411
The text was updated successfully, but these errors were encountered: