-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
RFC 6902 JSON Patch support for Baobab? #441
Comments
Hello @dumconstantin. There is no such thing for the time being but I guess it wouldn't be too hard to create one at all. Is that something you need and consider doing in a near future? |
Hi @Yomguithereal, yes I'm using patches to update the Baobab state, currently my components export a stream of patches: I'd like to implement the json patch rfc for baobab, is that something I can contribute with? Do you have any thoughts on it? |
Sure. Go ahead and create a library. If you want, I can also show you how the |
According to RFC, if from a batch of patches one fails then no patch will be applied. Is there any way to do a dry run of calling the |
There are two ways to do so. Either by providing a validator function & by setting validationBehavior to Maybe it's time to add an |
Is there currently any A problem I see with calling these is that if you have more updates on the tree (besides the patches) then doing an abort will remove those too. A work around on the above would be:
Although this is prone to errors, as you said, if the tree is set to update synchronous. I think the behavior needs to be more of an atomic transaction, so along the |
Hi, You can see some progress I made here: I'll refactor this to be in tune to with the rest of the repo, but is this something that you had in mind? |
Hi there, is there something like
https://github.com/intelie/immutable-js-patch
for Baobab?The text was updated successfully, but these errors were encountered: