GraphReFlyTS

API Reference

openPersistentReactiveMap()

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

Import

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

Signature

function openPersistentReactiveMap(opts: OpenPersistentReactiveMapOptions<K, V>): Promise<PersistentReactiveMap<K, V>>

Parameters

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

Returns

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

Example

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

Source

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