-
-
Notifications
You must be signed in to change notification settings - Fork 96
updatedDiff() not suitable for nested array? #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just looking at the example you've given, it looks like you're invoking The touched method is interesting, I suppose my only question would be how would you represent deeply nested diffs on properties? |
My bad, programmer burnout over here.
Anyway, I think that using Thanks for this library!, I think I will use it in all my projects from now . It's really helpful for knowing what properties are touched and should be sent to the API instead of the whole object in a PATCH request. |
Ha no worries it happens to the best of us, am glad it was a quick one to fix 😆👍 |
Having this original object:
And the one with the updated property
tags
The result of doing
Am I missing something? I just wanted to use only
updatedDiff()
method to make things easier.Any advice will be appreciated
BTW, it would be interesting to have a method just for listing all properties that have been touched. I'm aware about
detailedDiff()
, but in a plain way with no details could be useful for knowing what properties are "dirty"The text was updated successfully, but these errors were encountered: