Skip to content
PACKAGES

restoreReactiveList()

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

import { restoreReactiveList } from "@graphrefly/ts/data-structures";
function restoreReactiveList(
state: ReactiveListRestoreState<T> | readonly T[],
options: ReactiveListOptions = {},
): ReactiveList<T>
ParameterTypeDescription
stateReactiveListRestoreState<T> | readonly T[]state value used by the helper.
optionsReactiveListOptionsOptions that configure the helper.

A ReactiveList<T> value.

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

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