@yorkie-js/sdk
    Preparing search index...

    Interface ResyncOptions<P>

    ResyncOptions are the options of Client.resync.

    interface ResyncOptions<P> {
        discardLocalChanges: true;
        initialPresence?: P;
    }

    Type Parameters

    • P
    Index

    Properties

    discardLocalChanges: true

    discardLocalChanges must be true: the un-pushed local changes are taken out of the queue and returned to the caller instead of being sent again. There is no non-discarding form — the server refused those changes, and re-presenting them is what wedged the document in the first place. It is spelled out at the call site so the data loss is never implicit.

    initialPresence?: P

    initialPresence is the presence to attach with. Defaults to the document's current presence, so a recovery keeps the cursor the user is holding: presence is not what the server refused.