Comments (2)
There's nothing in the framework integration that use anything like this (ObservableObject is explicitly only a change signal, and 'objectWillChange), so if we were going to add our own "objectDidChange" equivalent kind of thing, I'd be very tempted to do something to include information about _what_ changed - the whole set of data from
heads()` comes to mind. I haven't thought anything out on this front though, and don't have my own specific use case for what this is enabling.
from automerge-swift.
so if we were going to add our own "objectDidChange" equivalent kind of thing, I'd be very tempted to do something to include information about what changed
That would be preferable to me, just more work. I guess it should include pre change and post change heads? Then later when #148 is available the listener will be able to generate the specific Patches for the change. That would be useful in many scenarios where the goal is to observer an Automerge.Document and process all changes.
from automerge-swift.
Related Issues (20)
- Accessing history timestamp HOT 4
- Add Observable to Automerge.Document
- Revise documentation to better describe API layers HOT 5
- Create a parallel Document that's actor protected, with async methods for updating content HOT 2
- Encoding an empty dictionary throws an error HOT 2
- Timestamp HOT 5
- AutomergeText.textBinding() instances not bound to a document don't publish updates HOT 7
- expose the diff set of APIs
- AutomergeText doesn't have any change notification triggered on doc updates HOT 1
- update Counter, and refactor schema creation logic
- update Counter and AutomergeText so that they only register change signals IF the content they point to changes
- expose Blocks API to Swift HOT 2
- Sendable conformance warnings
- Overzealous observability change notifications
- Send doc.objectWillChange outside of sync queue? HOT 4
- Race in common usage of Document.save, document.encodeChangesSince, and Document.heads? HOT 1
- expose Automerge::Diff to Swift
- exposing Automerge::get_marks through to Swift
- extend ChangeHash internal initializer to use Automerge core logic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automerge-swift.