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

Function StoreView

src/ui-react-inspector/StoreView.tsx:11–30  ·  view source on GitHub ↗
({
  storeId,
  s,
}: {readonly storeId?: Id} & StoreProp)

Source from the content-addressed store, hash-verified

9import {ValuesView} from './ValuesView.tsx';
10
11export const StoreView = ({
12 storeId,
13 s,
14}: {readonly storeId?: Id} & StoreProp) => {
15 const store = useStore(storeId);
16 return isUndefined(store) ? null : (
17 <Details
18 uniqueId={getUniqueId('s', storeId)}
19 title={
20 (store.isMergeable() ? 'Mergeable' : '') +
21 'Store: ' +
22 (storeId ?? DEFAULT)
23 }
24 s={s}
25 >
26 <ValuesView storeId={storeId} store={store} s={s} />
27 <TablesView storeId={storeId} store={store} s={s} />
28 </Details>
29 );
30};

Callers

nothing calls this directly

Calls 4

useStoreFunction · 0.90
isUndefinedFunction · 0.90
getUniqueIdFunction · 0.90
isMergeableMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…