Skip to main content
Module

x/automerge/index.ts>loadIncremental

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

Load changes produced by saveIncremental, or partial changes

Parameters

doc: Doc<T>
  • The compressedchanges
data: Uint8Array

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.

optional
opts: ApplyOptions<T>