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

Function useHasRowCallback

src/ui-solid-inspector/index.tsx:138–144  ·  view source on GitHub ↗
(
  storeOrStoreId: StoreOrStoreId | undefined,
  tableId: Id,
)

Source from the content-addressed store, hash-verified

136};
137
138const useHasRowCallback = (
139 storeOrStoreId: StoreOrStoreId | undefined,
140 tableId: Id,
141) => {
142 const store = useStoreOrStoreById(storeOrStoreId);
143 return (rowId: Id) => store()?.hasRow(tableId, rowId) ?? false;
144};
145
146const useHasValueCallback = (storeOrStoreId: StoreOrStoreId | undefined) => {
147 const store = useStoreOrStoreById(storeOrStoreId);

Callers 2

AddRowFunction · 0.70
CloneRowFunction · 0.70

Calls 3

useStoreOrStoreByIdFunction · 0.90
hasRowMethod · 0.65
storeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…