Skip to content
PACKAGES

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 { reactiveMap } from "@graphrefly/ts/data-structures";
function reactiveMap(options: ReactiveMapOptions<K, V> = {}): ReactiveMap<K, V>
ParameterTypeDescription
optionsReactiveMapOptions<K, V>Options that configure the helper.

A ReactiveMap<K, V> value.

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

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