yorkie-js-sdk
yorkie-js-sdk copied to clipboard
Place `Text.selectionMap` to presence, not document.
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.