GraphReFlyTS

API Reference

combine()

combine (alias combineLatest): emit a tuple of every dep's latest value whenever ANY dep delivers, once ALL deps have delivered at least one value. partial:true; the all-delivered gate is depLatest(ctx, i) !== undefined per dep. Completes when ALL deps complete (default completeWhenDepsComplete); any dep ERROR propagates (default errorWhenDepsError). Emits a fresh tuple per wave (D49 — no dedup; compose distinctUntilChanged to suppress unchanged tuples).

Import

import { combine } from "@graphrefly/ts/operators";

Signature

function combine(): Operator<unknown, T>

Returns

A Operator<unknown, T> value.

Example

import { combine } from "@graphrefly/ts/operators";

Source

packages/ts/src/graph/combinators.ts