yorkie-js-sdk icon indicating copy to clipboard operation
yorkie-js-sdk copied to clipboard

Place `Text.selectionMap` to presence, not document.

Open hackerwins opened this issue 1 year ago • 0 comments

Description:

Place Text.selectionMap to presence, not document(CRDT).

Text.SelectionMap is used to represent the user's selection in Text. The selections should be propagated to peers editing the same document, but need not be stored.

So let's place selectionMap to Presence, not document.

Related to #302.

Why:

  • Storing the selection in document will unnecessarily increase the size of metadata(logical clock) and increase the history of the document.

hackerwins avatar Aug 15 '22 09:08 hackerwins