@automerge/automerge - v3.1.1
    Preparing search index...

    Function clone

    • Make a full writable copy of an automerge document

      Type Parameters

      • T

        The type of the value contained in the document

      Parameters

      Returns Doc<T>

      Unlike view this function makes a full copy of the memory backing the document and can thus be passed to change. It also generates a new actor ID so that changes made in the new document do not create duplicate sequence numbers with respect to the old document. If you need control over the actor ID which is generated you can pass the actor ID as the second argument