Skip to content
PACKAGES

restoreReactiveLog()

D161 synchronous collection-owned restore. This helper never reads storage.

import { restoreReactiveLog } from "@graphrefly/ts/data-structures";
function restoreReactiveLog(
state: ReactiveLogRestoreState<T> | readonly T[],
options: ReactiveLogOptions = {},
): ReactiveLog<T>
ParameterTypeDescription
stateReactiveLogRestoreState<T> | readonly T[]state value used by the helper.
optionsReactiveLogOptionsOptions that configure the helper.

A ReactiveLog<T> value.

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

packages/ts/src/data-structures/persistence.ts