3 ms·
I'm missing something. shouldComponentUpdate: function(nextProps) { return nextProps.tile.active !== this.props.tile.active; } "That means that
by burnout1540 12y ago
I'm missing something.
shouldComponentUpdate: function(nextProps) {
return nextProps.tile.active !== this.props.tile.active;
}
"That means that nextProps.tile and this.props.tile are pointing at the exact same object, so they will always be equal."
If this is the case, shouldComponentUpdate would always return false and he should not see any of the components update. But he's seeing ALL of them update.