restoreReactiveLog()
D161 synchronous collection-owned restore. This helper never reads storage.
Import
Section titled “Import”import { restoreReactiveLog } from "@graphrefly/ts/data-structures";Signature
Section titled “Signature”function restoreReactiveLog( state: ReactiveLogRestoreState<T> | readonly T[], options: ReactiveLogOptions = {},): ReactiveLog<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
state | ReactiveLogRestoreState<T> | readonly T[] | state 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 { restoreReactiveLog } from "@graphrefly/ts/data-structures";Source
Section titled “Source”packages/ts/src/data-structures/persistence.ts