Automerge Repo - v2.3.0-alpha.0
    Preparing search index...
    • 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: Automerge.Doc<T>
      • data: Uint8Array

        The compressedchanges

      • Optionalopts: Automerge.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 Automerge.Doc<T>