automerge-repo
automerge-repo copied to clipboard
An unavailable document may just not be found yet
Consider the following:
- 2 peers, Alice, Bob. Bob has a share policy of false.
- Alice tries to find a document which neither of them has. It isn't available, so that gets marked as
unavailable
on both peers. - Bob now gets that document, but their share policy means that it doesn't get shared immediately with Alice.
- If Alice tries to
find
the document again, there will be an immediateunavailable
event fired, but at the same time it will sync it from Bob and then the document will resolve.
My question is, should we remove the immediate unavailable
event until another sync attempt has been made?