openPersistentReactiveIndex()
D161 convenience wrapper: passive load, sync restoreReactiveIndex, then sidecar persist.
Import
Section titled “Import”import { openPersistentReactiveIndex } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function openPersistentReactiveIndex(opts: OpenPersistentReactiveIndexOptions<K, V>): Promise<PersistentReactiveIndex<K, V>>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
opts | OpenPersistentReactiveIndexOptions<K, V> | Options that configure the helper. |
Returns
Section titled “Returns”A Promise<PersistentReactiveIndex<K, V>> value.
Example
Section titled “Example”import { openPersistentReactiveIndex } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/reactive-collection-storage.ts