"Pending" state for the document while composing?

When using @codemirror/collab, as in the collaborative editing example, characters entered while composing using an IME are transmitted to collaborators immediately.


Would it make sense to keep the document in a “pending” state during composition?


You can set up your syncing logic to hold off on syncing until composition finishes, if you want. But I’m not interested in adding an unsynced state where the editor state disconnects from the DOM state.

That is what we’ve done (in a custom syncing extension, rather than in @codemirror/collab), so I’m looking particularly for opinions on whether that might be a terrible idea, for some unforeseen reason.

1 Like

No, that should be fine. If the collaborative editing is robust to network latency, it should automatically also be robust to intentionally delaying sends.

1 Like