Skip to content
PACKAGES

restoreReactiveIndex()

D161 synchronous collection-owned restore for sorted index rows; key-codec I/O stays outside.

import { restoreReactiveIndex } from "@graphrefly/ts/data-structures";
function restoreReactiveIndex(
state: ReactiveIndexRestoreState<K, V> | readonly IndexRow<K, V>[],
options: ReactiveIndexOptions = {},
): ReactiveIndex<K, V>
ParameterTypeDescription
stateReactiveIndexRestoreState<K, V> | readonly IndexRow<K, V>[]state value used by the helper.
optionsReactiveIndexOptionsOptions that configure the helper.

A ReactiveIndex<K, V> value.

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

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