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
Section titled “Import”import { reactiveMap } from "@graphrefly/ts/data-structures";Signature
Section titled “Signature”function reactiveMap(options: ReactiveMapOptions<K, V> = {}): ReactiveMap<K, V>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | ReactiveMapOptions<K, V> | Options that configure the helper. |
Returns
Section titled “Returns”A ReactiveMap<K, V> value.
Example
Section titled “Example”import { reactiveMap } from "@graphrefly/ts/data-structures";Source
Section titled “Source”packages/ts/src/graph/data-structures/reactive-map.ts