Skip to content

@sqlrooms/cells / CellsSliceState

Type Alias: CellsSliceState

CellsSliceState = object

Properties

cells

cells: SliceFunctions & object

Type Declaration

NameTypeDescription
configCellsSliceConfig-
statusRecord<string, CellStatus>-
activeAbortControllersRecord<string, AbortController>-
cellRegistryCellRegistry-
resultVersionRecord<string, number>Monotonic counter per cell, incremented when a new execution result arrives. Used to trigger pagination reset and re-render.
pageVersionRecord<string, number>Monotonic counter per cell, incremented when a pagination/sorting fetch completes. Used to trigger re-render without resetting pagination.
crossFilterSelectionsRecord<string, Record<string, CrossFilterSelection | null>>Ephemeral cross-filter selections (not persisted). Outer key: sqlId (the shared data source), inner key: chartCellId.
setCrossFilterSelection()(chartCellId, sqlId, selection) => void-
getCrossFilterPredicate()(chartCellId, sqlId) => string | null-
clearCrossFilterGroup()(sqlId) => void-
ensureArtifact()(artifactId, options?) => void-
removeArtifact()(artifactId) => void-
addCell()(artifactId, cell, index?) => Promise<void>-
removeCell()(id) => void-
updateCell()(id, updater, opts?) => Promise<void>-
addEdge()(artifactId, edge) => void-
removeEdge()(artifactId, edgeId) => void-
updateEdgesFromSql()(artifactId, cellId) => Promise<void>-
runCell()(id, opts?) => Promise<void>-
cancelCell()(id) => void-
invalidateCellStatus()(id) => void-
setCellResult()(id, data) => void-
setCellResultPage()(id, data) => void-
getCellResult()(id) => CellResultData | undefined-
clearCellResult()(id) => void-
fetchCellResultPage()(id, pagination, sorting?) => Promise<void>-
getArtifactIdForCell()(cellId) => string | undefined-
getDownstream()(artifactId, sourceCellId) => string[]-
getRootCells()(artifactId) => string[]-
runAllCellsCascade()(artifactId) => Promise<void>-
runDownstreamCascade()(artifactId, sourceCellId) => Promise<void>-

initialize()?

optional initialize: () => Promise<void>

Returns

Promise<void>