Skip to content
PACKAGES

reactiveIndex()

Create a reactive dual-key index (D54/D60). DELTA + lazy pull SNAPSHOT + pullId via {@link collectionCore}; this layer adds the sorted backend + Z reverse-lookup surface.

import { reactiveIndex } from "@graphrefly/ts/data-structures";
function reactiveIndex(options: ReactiveIndexOptions = {}): ReactiveIndex<K, V>
ParameterTypeDescription
optionsReactiveIndexOptionsOptions that configure the helper.

A ReactiveIndex<K, V> value.

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

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