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
I am using this to generate diffs that are stored in a database. If I only apply in one direction (in this case applyChange and not revertChange), am I correct to conclude that lhs is not necessary? Which means it is causing the diff to be unnecessarily large in space.
If this is unnecessary, is there an easy way to omit it from being generated, or should I just map over the differences and remove it?
The text was updated successfully, but these errors were encountered:
The lhs property is supplied for validation; at the time I authored the library, I needed to ensure the change was being applied to an appropriate object - I defined appropriate as "an object that looks like the object from which the difference was calculated".
That said, most use cases can safely discard lhs.
I am working on a major update, v2.x which includes a compact representation for storage... as time allows.
Why is the lhs property created in diff?
Is this only used for revertChange?
I am using this to generate diffs that are stored in a database. If I only apply in one direction (in this case applyChange and not revertChange), am I correct to conclude that lhs is not necessary? Which means it is causing the diff to be unnecessarily large in space.
If this is unnecessary, is there an easy way to omit it from being generated, or should I just map over the differences and remove it?
The text was updated successfully, but these errors were encountered: