Comments (1)
yeah, it's by design - but not specifically well thought out by me, I was replicating what's in JS automerge-repo. Delete marks the item locally as deleted, with the concept being that others might have replicas and try to continue to sync, and we don't want to just "reload" on sync when we've deleted it.
The (perhaps poor) conceit/conception is that all documents are always in the repo, and you control the sharing by allowing or disallowing it with the sharing controls (either the static .agreeable
or something you make that provides a choice of "may I share" given an ID and peerID (conforms to ShareAuthorizing)
That said, I think there should be a way for you to ask to "nuke" this ID so that it doesn't exist, or potentially allow a create() to replace it without hitting that error.
from automerge-repo-swift.
Related Issues (20)
- add configurable find timeout when waiting for responses from peers
- flaky test - testCreateAndObserveChange
- Exception in Repo.updateDoc when document has been deleted locally HOT 4
- Document added to repo doesn't seem to get state from web socket peer until it sends state of own HOT 18
- DocumentId doesn't always convert down to String and back HOT 2
- test extended idle connection with WebSocket provider
- Is repo import/export api needed? HOT 2
- sync functional, but not near-realtime HOT 6
- Logging is useful when you need it, but an annoying flood otherwise
- websocket failing and never reconnecting HOT 3
- Should create multiple documents with same id throw error? HOT 36
- WebSocketProvider: Connect - Disconnect - Connect always fails HOT 1
- Infinite WEBSOCKET: Error reading websocket scenarios HOT 14
- Repo.find behavior HOT 5
- add network availability event feed into WebSocket to inform retry loops HOT 5
- add combine publisher to provide information about state updates in WebSocketNetworkProvider
- Add maximum retry configuration to WebSocket network provider
- Assert failing in WebSocketProvider.connect after repo.find HOT 6
- add a Storage Provider that works against an iOS or macOS provided fileURL HOT 2
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-repo-swift.