GraphReFlyTS

API Reference

reactiveLog()

Create an append-only reactive log (D54/D60). DELTA + lazy pull SNAPSHOT + pullId via {@link collectionCore}; this layer adds the typed append surface + incremental view/scan.

Import

import { reactiveLog } from "@graphrefly/ts/data-structures";

Signature

function reactiveLog(
	initial?: readonly T[],
	options: ReactiveLogOptions = {},
): ReactiveLog<T>

Parameters

ParameterTypeDescription
initialreadonly T[]initial value used by the helper.
optionsReactiveLogOptionsOptions that configure the helper.

Returns

A ReactiveLog<T> value.

Example

import { reactiveLog } from "@graphrefly/ts/data-structures";

Source

packages/ts/src/graph/data-structures/reactive-log.ts