Skip to content
PACKAGES

openPersistentReactiveMap()

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

import { openPersistentReactiveMap } from "@graphrefly/ts/adapters";
function openPersistentReactiveMap(opts: OpenPersistentReactiveMapOptions<K, V>): Promise<PersistentReactiveMap<K, V>>
ParameterTypeDescription
optsOpenPersistentReactiveMapOptions<K, V>Options that configure the helper.

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

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

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