Skip to content

Function: selectionSignal()

selectionSignal(sel): SelectionSignal

Defined in: mosaic-selection.ts:768

Bridge one Selection into Solid: a version counter bumped by the Selection's own value event, with derived reactive views over the clause list. This is the read side that makes "reset filters (N)" labels and filter-aware cells track EVERY producer — a mouse brush, a menu, another agent — not just this module's dimensions (mirroring one writer is the bug; the Selection is the meeting point). Extracted from cc-miner's filterVersion/filterSql pattern.

Create it once per Selection in the store: appScope.durable("brushSignal", () => selectionSignal(brush)).

Parameters

sel

SelectionLike

Returns

SelectionSignal