-
Notifications
You must be signed in to change notification settings - Fork 214
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
How do I actually apply a diff "later"? #162
Comments
@Pomax I had the same problem and after a lot of work I found a way to do it with this package. The examples of this repo explain how to implement it. Greetings. diff/examples/capture_change_apply_elsewhere.js Lines 24 to 30 in e2b5b86
|
I can't seem to figure out how to apply a diff generated by the
diff
function if all I have is a target and a change object. For instance, in a client/server setup:and
What is the call to actually apply a diff to an object? Not "while generating the diff" using applyChange, and not "while having a direct reference to the original object" because then what's the point of diffing at all (you already have the result).
There's an
applyDiff
function but its signature isapplyDiff(target, source, filter)
which makes no sense: issource
supposed to be the diff object?The text was updated successfully, but these errors were encountered: