Replies: 1 comment 6 replies
-
Hi @sensslen, I don't quite understand your requirements. Could you elaborate on the API and code example you need? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Whenever we want loro to store changes, we need to call commit() on the loro document a map is associated with. We can get this document from the map.
In our application we need a way to batch changes. Before we started loro we used to have commit batches which would take all changes and only once we finished that batch the commit() would be called. We used to allow for nested commit batches and thus only the last batch would actually commit the changes. With loro we would like to do something very similar. To do this we currently have to keep a shadow object hierarchy in our application code which allows us to wrap the document to provide this functionality.
Ideally we would like to be able to delegate these operations to loro, as loro already needs to maintain an object tree with the document as root. If the document supported commit batches we could simply start a batch on the document an entity is associated with and not worry about any shadow object hierarchy.
It would be very nice if we could add this functionality for loro.
Beta Was this translation helpful? Give feedback.
All reactions