• Apply changes received from another document

    doc will be updated to reflect the changes. If there are changes which we do not have dependencies for yet those will be stored in the document and applied when the depended on changes arrive.

    You can use the ApplyOptions to pass a patchcallback which will be informed of any changes which occur as a result of applying the changes

    Type Parameters

    • T

    Parameters

    • doc: Doc<T>
    • changes: Uint8Array[]
    • Optional opts: ApplyOptions<T>

    Returns [Doc<T>]