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

Function StoreView

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

Source from the content-addressed store, hash-verified

728};
729
730const StoreView = (props: {readonly storeId?: Id} & StoreProp) => {
731 const store = useStore(props.storeId);
732 return (
733 <>
734 {isUndefined(store()) ? (
735 EMPTY_STRING
736 ) : (
737 <Details
738 uniqueId={getUniqueId('s', props.storeId)}
739 title={
740 (store()!.isMergeable() ? 'Mergeable' : '') +
741 'Store: ' +
742 (props.storeId ?? DEFAULT)
743 }
744 s={props.s}
745 >
746 <ValuesView storeId={props.storeId} store={store()} s={props.s} />
747 <TablesView storeId={props.storeId} store={store()} s={props.s} />
748 </Details>
749 )}
750 </>
751 );
752};
753
754const MetricRow = (props: {readonly metrics: any; readonly metricId: Id}) => (
755 <tr>

Callers

nothing calls this directly

Calls 5

useStoreFunction · 0.90
isUndefinedFunction · 0.90
getUniqueIdFunction · 0.90
isMergeableMethod · 0.65
storeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…