Skip to main content
Module

x/automerge/stable.ts>emptyChange

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
function emptyChange
import { emptyChange } from "https://deno.land/x/automerge@2.2.0/stable.ts";

Make a change to a document which does not modify the document

Parameters

doc: Doc<T>
  • The doc to add the empty change to
options: string | ChangeOptions<T> | void

Why would you want to do this? One reason might be that you have merged changes from some other peers and you want to generate a change which depends on those merged changes so that you can sign the new change with all of the merged changes as part of the new change.