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
| Parameter | Type | Description |
|---|---|---|
state | ReactiveListRestoreState<T> | readonly T[] | state value used by the helper. |
options | ReactiveListOptions | Options 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