3 ms·
Why doesn't react switch to doing a more sensible equality check, rather than relying on JS's unfortunate choices? (E.g. value equality for arrays and objects)
by enricozb 1y ago
Why doesn't react switch to doing a more sensible equality check, rather than relying on JS's unfortunate choices? (E.g. value equality for arrays and objects) I feel like this would simplify most existing sensible code.
- owebmaster 1y agoComparing objects is quite expensive, JavaScript does not even have APIs for that.