MCPcopy Index your code
hub / github.com/tinyplex/tinybase / ResultRowView

Function ResultRowView

src/ui-solid/ResultRowView.tsx:11–36  ·  view source on GitHub ↗
(props: ResultRowProps)

Source from the content-addressed store, hash-verified

9import {ResultCellView} from './ResultCellView.tsx';
10
11export const ResultRowView = (props: ResultRowProps): JSXElement => {
12 const resultCellIds = useResultCellIds(
13 () => props.queryId,
14 () => props.rowId,
15 () => props.queries,
16 );
17 const content = () => {
18 const ResultCell = props.resultCellComponent ?? ResultCellView;
19 return wrap(
20 arrayMap(getValue(resultCellIds) as Id[], (cellId: Id) => (
21 <ResultCell
22 {...getProps(props.getResultCellComponentProps, cellId)}
23 queryId={props.queryId}
24 rowId={props.rowId}
25 cellId={cellId}
26 queries={props.queries}
27 debugIds={props.debugIds}
28 />
29 )),
30 props.separator,
31 props.debugIds,
32 props.rowId,
33 );
34 };
35 return <>{content()}</>;
36};

Callers

nothing calls this directly

Calls 2

useResultCellIdsFunction · 0.90
contentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…