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
Section titled “Import”import { reactiveLog } from "@graphrefly/ts/data-structures";Signature
Section titled “Signature”function reactiveLog( initial?: readonly T[], options: ReactiveLogOptions = {},): ReactiveLog<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
initial | readonly T[] | initial value used by the helper. |
options | ReactiveLogOptions | Options that configure the helper. |
Returns
Section titled “Returns”A ReactiveLog<T> value.
Example
Section titled “Example”import { reactiveLog } from "@graphrefly/ts/data-structures";Source
Section titled “Source”packages/ts/src/graph/data-structures/reactive-log.ts