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
Is this expected? I didn't see any options to ignore the order in arrays for example, but that could probably be added, right?
I can close this if this is expected and won't be addressed.
PS: what I currently do to go around this is order all arrays within the object which is obviously adding yet another loop that's otherwise already happening in your code - but this could probably be simply added for each array in your codebase. LMK if you want me to make a PR.
Another thing I noticed is that in React, having undefined as value is problematic as the renderer just assumes empty object and removes keys with values undefined.
Hey, thanks for the code. I'm trying to replace our custom implementation with this lib and I noticed that
these two are not considered equal when using
diff()
dye to array order in "values".detailedDiff
confirms that:Is this expected? I didn't see any options to ignore the order in arrays for example, but that could probably be added, right?
I can close this if this is expected and won't be addressed.
PS: what I currently do to go around this is order all arrays within the object which is obviously adding yet another loop that's otherwise already happening in your code - but this could probably be simply added for each array in your codebase. LMK if you want me to make a PR.
Another thing I noticed is that in React, having
undefined
as value is problematic as the renderer just assumes empty object and removes keys with values undefined.this becomes just
which effectively loses it's value unfortunately. Perhaps keys should be listed in an array that show what was removed?
The text was updated successfully, but these errors were encountered: