GraphReFlyTS

API Reference

openPersistentReactiveIndex()

D161 convenience wrapper: passive load, sync restoreReactiveIndex, then sidecar persist.

Import

import { openPersistentReactiveIndex } from "@graphrefly/ts/adapters";

Signature

function openPersistentReactiveIndex(opts: OpenPersistentReactiveIndexOptions<K, V>): Promise<PersistentReactiveIndex<K, V>>

Parameters

ParameterTypeDescription
optsOpenPersistentReactiveIndexOptions<K, V>Options that configure the helper.

Returns

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

Example

import { openPersistentReactiveIndex } from "@graphrefly/ts/adapters";

Source

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