• Batch-replace multiple live derivations atomically.

    All compute closures are swapped before the commit, then every version input is bumped within a single commit so subscribers downstream of any of the affected derivations fire at most once across the batch.

    Parameters

    • graph: Graph

      The owning graph (must match the graph each handle was registered against).

    • edits: readonly { handle: LiveDerivedHandle<unknown>; next: Compute<unknown> }[]

      Pairs of { handle, next } describing each swap.

    Returns void

    If any handle is not registered with graph.

    replaceMany(graph, [
    { handle: total, next: (get) => get(a) * get(b) },
    { handle: tax, next: (get) => get(total.node) * 0.1 },
    ])