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

Function useDottedCellIds

src/ui-solid-dom/RelationshipInHtmlTable.tsx:36–48  ·  view source on GitHub ↗
(
  tableId: MaybeAccessor<Id | undefined>,
  store: MaybeAccessor<Store | undefined>,
)

Source from the content-addressed store, hash-verified

34} from './common/index.tsx';
35
36const useDottedCellIds = (
37 tableId: MaybeAccessor<Id | undefined>,
38 store: MaybeAccessor<Store | undefined>,
39) => {
40 const cellIds = useTableCellIds(
41 () => getValue(tableId) as Id,
42 () => getValue(store),
43 );
44 const dottedCellIds = createMemo(() =>
45 arrayMap(cellIds(), (cellId) => getValue(tableId) + DOT + cellId),
46 );
47 return dottedCellIds;
48};
49
50export const RelationshipInHtmlRow = (props: {
51 readonly localRowId: Id;

Callers 1

RelationshipInHtmlTableFunction · 0.70

Calls 3

useTableCellIdsFunction · 0.90
getValueFunction · 0.90
arrayMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…