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
Not sure if I'm missing something in the internals of createCustomEqual(), but it seems that URL instances in particular are always treated as unequal. Because internally getTag() returns [object URL], areObjectsEqual() is never called and custom equality functions never even get called.
Is there any way around this? Has passing in custom quality functions on a per-tag basis to handle special cases considered?
The text was updated successfully, but these errors were encountered:
Comparison as a standard object is a no-go because the properties on the URL object are not enumerable, so nothing but false positives since it is seen as an empty object. However, like RegExp the properties are known and primitives, so a fast targeted comparator was easy to build.
Not sure if I'm missing something in the internals of
createCustomEqual()
, but it seems that URL instances in particular are always treated as unequal. Because internallygetTag()
returns[object URL]
,areObjectsEqual()
is never called and custom equality functions never even get called.Is there any way around this? Has passing in custom quality functions on a per-tag basis to handle special cases considered?
The text was updated successfully, but these errors were encountered: