Update shallow equal objects
ematipico opened this issue · comments
Emanuele Stoppa commented
I would to request to update the shallow equal for objects with the following one
https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
React-redux guys update it recently in order to use the shallowEqual they use in fbjs. This piece of code also manages number cases
Misha Moroshko commented
Could you describe the issue you are trying to solve, and provide a failing test please?
Gray Zhang commented
react-redux's implement actually uses the Object.is spec, the core difference is Object.is(0, -0) === false
and Object.is(NaN, NaN) === true