MCPcopy
hub / github.com/tinyplex/tinybase / useCustomOrDefaultCellIds

Function useCustomOrDefaultCellIds

src/ui-react/common/hooks.tsx:5–13  ·  view source on GitHub ↗
(
  customCellIds: Ids | undefined,
  tableId: Id,
  rowId: Id,
  store?: StoreOrStoreId,
)

Source from the content-addressed store, hash-verified

3import {useCellIds} from '../hooks.ts';
4
5export const useCustomOrDefaultCellIds = (
6 customCellIds: Ids | undefined,
7 tableId: Id,
8 rowId: Id,
9 store?: StoreOrStoreId,
10): Ids => {
11 const defaultCellIds = useCellIds(tableId, rowId, store);
12 return customCellIds ?? defaultCellIds;
13};

Callers 1

RowViewFunction · 0.90

Calls 1

useCellIdsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…