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

Function IndexView

src/ui-solid/IndexView.tsx:11–34  ·  view source on GitHub ↗
(props: IndexProps)

Source from the content-addressed store, hash-verified

9import {SliceView} from './SliceView.tsx';
10
11export const IndexView = (props: IndexProps): JSXElement => {
12 const sliceIds = useSliceIds(
13 () => props.indexId,
14 () => props.indexes,
15 );
16 const content = () => {
17 const Slice = props.sliceComponent ?? SliceView;
18 return wrap(
19 arrayMap(getValue(sliceIds) as Id[], (sliceId: Id) => (
20 <Slice
21 {...getProps(props.getSliceComponentProps, sliceId)}
22 indexId={props.indexId}
23 sliceId={sliceId}
24 indexes={props.indexes}
25 debugIds={props.debugIds}
26 />
27 )),
28 props.separator,
29 props.debugIds,
30 props.indexId,
31 );
32 };
33 return <>{content()}</>;
34};

Callers

nothing calls this directly

Calls 2

useSliceIdsFunction · 0.90
contentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…