GraphReFlyTS

API Reference

reactiveMap()

Create a reactive map (D54/D60). DELTA stream of {@link MapChange} + lazy pull SNAPSHOT (a ReadonlyMap) + pullId via {@link collectionCore}; this layer adds the typed map surface.

Import

import { reactiveMap } from "@graphrefly/ts/data-structures";

Signature

function reactiveMap(options: ReactiveMapOptions<K, V> = {}): ReactiveMap<K, V>

Parameters

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

Returns

A ReactiveMap<K, V> value.

Example

import { reactiveMap } from "@graphrefly/ts/data-structures";

Source

packages/ts/src/graph/data-structures/reactive-map.ts