Skip to content
PACKAGES

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 { reactiveLog } from "@graphrefly/ts/data-structures";
function reactiveLog(
initial?: readonly T[],
options: ReactiveLogOptions = {},
): ReactiveLog<T>
ParameterTypeDescription
initialreadonly T[]initial value used by the helper.
optionsReactiveLogOptionsOptions that configure the helper.

A ReactiveLog<T> value.

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

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