I'd like to thank all contributors for that awesome library.
Unfortunately I think I encountered a bug, not sure: In an application, I work a lot with luxons DateTime objects (see: https://moment.github.io/luxon/#/) to represent dates. When it comes to comparison of two objects with a prop of DateTime object, the output operation array seems to be wrong.
One would expect the only change to be the miliseconds numbers or just a "replace" operation for the string representation but not a whole add array items stuff.
Do you have an idea why this happens and how to fix it? Is it a bug or do I have the wrong expectations on the behaviour?
Hello world,
I'd like to thank all contributors for that awesome library.
Unfortunately I think I encountered a bug, not sure: In an application, I work a lot with luxons DateTime objects (see: https://moment.github.io/luxon/#/) to represent dates. When it comes to comparison of two objects with a prop of DateTime object, the output operation array seems to be wrong.
Here is a Codesandbox attached: https://codesandbox.io/s/gracious-morse-bg1bc?file=/src/index.js
Comparing an object with null value property
{time: null}
and an object with DateTime property{time: DateTime.now()}
gives this operation array.Looks plausible to me.
Comparing two objects with DateTime objects in
time
property with around 10 ms difference gives this operation array.One would expect the only change to be the miliseconds numbers or just a "replace" operation for the string representation but not a whole add array items stuff.
Do you have an idea why this happens and how to fix it? Is it a bug or do I have the wrong expectations on the behaviour?
Kind regards, Tobias