Re:Why-did-you-update – Warnings about unnecessary React upd...
by acemarke on Wednesday April 19, 2017 @01:51PM
(#14149969)
Which does the exact kind of shallow equality checks I was just describing :) The point is that for shallow equality checks to work properly, you do have to handle data immutably - such as using `someArray.concat(item)` instead of `someArray.push(item)`, because otherwise passing in the same references is interpreted as "nothing as changed".
[ Parent
| on HN ]
There are no comments on this comment yet.