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

Function IndexesView

src/ui-solid-inspector/index.tsx:857–884  ·  view source on GitHub ↗
(props: {readonly indexesId?: Id} & StoreProp)

Source from the content-addressed store, hash-verified

855);
856
857const IndexesView = (props: {readonly indexesId?: Id} & StoreProp) => {
858 const indexes = useIndexes(props.indexesId);
859 const indexIds = useIndexIds(indexes);
860 return (
861 <>
862 {isUndefined(indexes()) ? (
863 EMPTY_STRING
864 ) : (
865 <Details
866 uniqueId={getUniqueId('i', props.indexesId)}
867 title={'Indexes: ' + (props.indexesId ?? DEFAULT)}
868 s={props.s}
869 >
870 {arrayIsEmpty(indexIds())
871 ? 'No indexes defined'
872 : sortedIdsMap(indexIds(), (indexId) => (
873 <IndexView
874 indexes={indexes()}
875 indexesId={props.indexesId}
876 indexId={indexId}
877 s={props.s}
878 />
879 ))}
880 </Details>
881 )}
882 </>
883 );
884};
885
886const QueryView = (
887 props: {

Callers

nothing calls this directly

Calls 7

useIndexesFunction · 0.90
useIndexIdsFunction · 0.90
isUndefinedFunction · 0.90
getUniqueIdFunction · 0.90
arrayIsEmptyFunction · 0.90
sortedIdsMapFunction · 0.90
indexesFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…