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

Function useQueriesSetCallback

src/ui-react/hooks.ts:516–534  ·  view source on GitHub ↗
(
  queriesOrQueriesId: QueriesOrQueriesId | undefined,
  settable: string,
  get: (parameter: Parameter, queries: Queries) => Thing,
  getDeps?: DependencyList,
  then?: (queries: Queries, thing: Thing) => void,
  thenDeps?: DependencyList,
  ...args: (Id | GetId<Parameter>)[]
)

Source from the content-addressed store, hash-verified

514 );
515
516const useQueriesSetCallback = <Parameter, Thing>(
517 queriesOrQueriesId: QueriesOrQueriesId | undefined,
518 settable: string,
519 get: (parameter: Parameter, queries: Queries) => Thing,
520 getDeps?: DependencyList,
521 then?: (queries: Queries, thing: Thing) => void,
522 thenDeps?: DependencyList,
523 ...args: (Id | GetId<Parameter>)[]
524): ParameterizedCallback<Parameter> =>
525 useSetCallback(
526 useQueriesOrQueriesById(queriesOrQueriesId),
527 settable,
528 get,
529 getDeps,
530 then,
531 thenDeps,
532 EMPTY_STRING,
533 ...args,
534 );
535
536const argsOrGetArgs = <Parameter>(
537 args: (Id | GetId<Parameter> | boolean | undefined)[],

Callers 2

useSetParamValueCallbackFunction · 0.70

Calls 2

useQueriesOrQueriesByIdFunction · 0.90
useSetCallbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…