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 want to use the diff and patch functions for an undo function in my React-Redux project. It works fine, when I am deleting the last item, but not when I deleting the first one or an item inside.
As mentioned in #302 I use something like this (with lodash and hasha as dependency):
objectHash: function(obj){// this function is used only to when objects are not equal by refconstnewObj=_(obj).toPairs().sortBy(0).fromPairs().value();consthash=hasha(JSON.stringify(newObj),{algorithm: "sha256"})returnhash;}
Hey
I want to use the diff and patch functions for an undo function in my React-Redux project. It works fine, when I am deleting the last item, but not when I deleting the first one or an item inside.
For example I delete the first item:
The result of diff is:
But I want to get:
Is this possible?
Thank you :)
The text was updated successfully, but these errors were encountered: