GraphReFlyTS

API Reference

loadReactiveIndexState()

D161 passive load/fold scaffold for reactiveIndex; key-codec restore is deferred.

Import

import { loadReactiveIndexState } from "@graphrefly/ts/storage";

Signature

function loadReactiveIndexState(opts: LoadReactiveCollectionStateOptions): Promise<ReactiveIndexRestoreState<K, V>>

Parameters

ParameterTypeDescription
optsLoadReactiveCollectionStateOptionsOptions that configure the helper.

Returns

A Promise<ReactiveIndexRestoreState<K, V>> value.

Example

import { loadReactiveIndexState } from "@graphrefly/ts/storage";

Source

packages/ts/src/storage/reactive-collection.ts