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