Comparing State Vectors

Hi @calclavia,

the state vector does not include all information to represent the state of a Yjs document. Deletions are not tracked by the state vector - the “delete set” must always be exchanged to sync two clients.

You can, however, create a hash-sum over the encoded Yjs document to check whether two clients are synced. Alternatively, it might be a good idea to introduce a “last-modified” timestamp. The client only needs to sync when the timestamp is updated.