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

Function useCallbackOrUndefined

src/ui-react-dom/common/hooks.tsx:33–41  ·  view source on GitHub ↗
(
  callback: any,
  deps: DependencyList,
  test: any,
)

Source from the content-addressed store, hash-verified

31): {queries: QueriesOrQueriesId | undefined; queryId: Id} =>
32 useMemo(() => ({queries, queryId}), [queries, queryId]);
33export const useCallbackOrUndefined = (
34 callback: any,
35 deps: DependencyList,
36 test: any,
37) => {
38 // eslint-disable-next-line react-hooks/exhaustive-deps
39 const returnCallback = useCallback(callback, deps);
40 return test ? returnCallback : undefined;
41};
42
43export const useParams = <
44 Params extends HtmlTableParams | RelationshipInHtmlRowParams,

Callers 3

useSortingAndPaginationFunction · 0.90
SortedTablePaginatorFunction · 0.90
HtmlHeaderCellFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…