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
| Parameter | Type | Description |
|---|---|---|
initial | readonly T[] | initial value used by the helper. |
options | ReactiveLogOptions | Options 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