GraphReFlyTS

API Reference

restoreReactiveList()

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

Import

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

Signature

function restoreReactiveList(
	state: ReactiveListRestoreState<T> | readonly T[],
	options: ReactiveListOptions = {},
): ReactiveList<T>

Parameters

ParameterTypeDescription
stateReactiveListRestoreState<T> | readonly T[]state value used by the helper.
optionsReactiveListOptionsOptions that configure the helper.

Returns

A ReactiveList<T> value.

Example

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

Source

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