Sanity Library Reference Docs
    Preparing search index...

    Interface PresencePerspectiveOptions

    Which specific document a presence id resolves to.

    Presence compares exact document ids, so a client in a draft and a client in the published document are in different places even for the same documentId. Pass the perspective you are editing under and the SDK resolves it; the React hooks take it from ResourceProvider when you do not pass one.

    interface PresencePerspectiveOptions {
        liveEdit?: boolean;
        perspective?: ReleasePerspective | ClientPerspective;
    }

    Hierarchy (View Summary)

    Index

    Properties

    liveEdit?: boolean

    Live-edit documents have no draft, so presence resolves to the published id.