restoreReactiveList()
D161 synchronous collection-owned restore. This helper never reads storage.
Import
Section titled “Import”import { restoreReactiveList } from "@graphrefly/ts/data-structures";Signature
Section titled “Signature”function restoreReactiveList( state: ReactiveListRestoreState<T> | readonly T[], options: ReactiveListOptions = {},): ReactiveList<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
state | ReactiveListRestoreState<T> | readonly T[] | state value used by the helper. |
options | ReactiveListOptions | Options that configure the helper. |
Returns
Section titled “Returns”A ReactiveList<T> value.
Example
Section titled “Example”import { restoreReactiveList } from "@graphrefly/ts/data-structures";Source
Section titled “Source”packages/ts/src/data-structures/persistence.ts