Hey, I’m hitting a slight snag where I have a situation where two (or more) people enter a document in an offline state. This document say has a initial value that can be whatever a document template defines it to be (a real example would be e.g. slatejs editor framework requires an empty first text node to be present on initialization).
Now two people go to the same document in offline mode, so both their documents are initialzed with the initial document value.
When one goes online, all good. When the other goes online, this initial document is duplicated.
So I’m wondering if there’s a way to tell yjs that “this value here is the initial value and if you see it again then ignore it and sync whatever is after”
My test app is using slate-yjs and y-websocket if that makes a difference to the approach.
I was directed here by slate-yjs btw so there may be more details in the issue I created there (https://github.com/BitPhinix/slate-yjs/issues/192)
Thanks for any help/pointers!