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

Function useHasRowCallback

src/ui-react-inspector/actions/tables.tsx:152–161  ·  view source on GitHub ↗
(
  storeOrStoreId: StoreOrStoreId | undefined,
  tableId: Id,
)

Source from the content-addressed store, hash-verified

150);
151
152const useHasRowCallback = (
153 storeOrStoreId: StoreOrStoreId | undefined,
154 tableId: Id,
155) => {
156 const store = useStoreOrStoreById(storeOrStoreId);
157 return useCallback(
158 (rowId: Id) => store?.hasRow(tableId, rowId) ?? false,
159 [store, tableId],
160 );
161};
162
163const AddCell = ({
164 onDone,

Callers 2

AddRowFunction · 0.70
CloneRowFunction · 0.70

Calls 2

useStoreOrStoreByIdFunction · 0.90
hasRowMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…