If we run otherReplica.getLatestDocs, we'll get an empty array. It doesn't have any documents in it yet. Let's put this replica in another peer so we can change that!
In fact, my otherReplica did already have the documents. Is it so that as soon as a replica is instantiated with a shareAddress, it will directly sync if it is nearby?
D'oh, I just realised I wrote it so that both replicas both use the same driver. That's why they're already 'synced' — they're essentially the same replica.
The "Playground" instructions say:
In fact, my
otherReplica
did already have the documents. Is it so that as soon as a replica is instantiated with ashareAddress
, it will directly sync if it is nearby?See https://github.com/earthstar-project/website/blob/main/docs/docs/playground.mdx, line 92