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

Function QueriesView

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

Source from the content-addressed store, hash-verified

920};
921
922const QueriesView = (props: {readonly queriesId?: Id} & StoreProp) => {
923 const queries = useQueries(props.queriesId);
924 const queryIds = useQueryIds(queries);
925 return (
926 <>
927 {isUndefined(queries()) ? (
928 EMPTY_STRING
929 ) : (
930 <Details
931 uniqueId={getUniqueId('q', props.queriesId)}
932 title={'Queries: ' + (props.queriesId ?? DEFAULT)}
933 s={props.s}
934 >
935 {arrayIsEmpty(queryIds())
936 ? 'No queries defined'
937 : sortedIdsMap(queryIds(), (queryId) => (
938 <QueryView
939 queries={queries()}
940 queriesId={props.queriesId}
941 queryId={queryId}
942 s={props.s}
943 />
944 ))}
945 </Details>
946 )}
947 </>
948 );
949};
950
951const RelationshipView = (
952 props: {

Callers

nothing calls this directly

Calls 7

useQueriesFunction · 0.90
useQueryIdsFunction · 0.90
isUndefinedFunction · 0.90
getUniqueIdFunction · 0.90
arrayIsEmptyFunction · 0.90
sortedIdsMapFunction · 0.90
queriesFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…