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
So it's absolutely fine to tell that these objects are shallowly equal. I think I might be very bad idea to return false, because then in a case of the same dates it will return false as well.
I can't say if this is the intended behavior, but we can't use
shallowEqual
to compareDate
objects:This happens because
Object.keys(new Date)
returns an empty list, which skips the checks of each object property here: https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/shallowEqual.js#L59So, should we also return false when the object returns no keys?
The text was updated successfully, but these errors were encountered: