fix(react): date compare in shallow equal function #164
MergedSashaZel(GitHub profile, opens in a new tab)merged 8 commits into
main fromrefs/pull/164/headmerged by crutchcorn(GitHub profile, opens in a new tab) - @@ -61,3 +61,6 @@6161 return true6262 }636364+ if (objA instanceof Date && objB instanceof Date) {65+ if (objA.getTime() !== objB.getTime()) return false66+ return true
crutchcorn(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Nice! This is a great fix. Can we apply the same fix to the other frameworks with similar
shallowmethods?