• Load changes produced by saveIncremental, or partial changes

    Type Parameters

    • T

      The type of the value which is contained in the document. Note that no validation is done to make sure this type is in fact the type of the contained value so be a bit careful

    Parameters

    • doc: Doc<T>
    • data: Uint8Array

      The compressedchanges

    • Optional opts: next.ApplyOptions<T>

      an ApplyOptions

      This function is useful when staying up to date with a connected peer. Perhaps the other end sent you a full compresed document which you loaded with load and they're sending you the result of getLastLocalChange every time they make a change.

      Note that this function will succesfully load the results of save as well as getLastLocalChange or any other incremental change.

    Returns Doc<T>

Generated using TypeDoc