Skip to main content
Module

x/automerge/index.ts>next.getLastLocalChange

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Latest
function next.getLastLocalChange
import { next } from "https://deno.land/x/automerge@2.2.2/index.ts";
const { getLastLocalChange } = next;

Get the binary representation of the last change which was made to this doc

This is most useful when staying in sync with other peers, every time you make a change locally via change you immediately call getLastLocalChange and send the result over the network to other peers.

Returns

Change | undefined