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

Function useStoreSetCallback

src/ui-react/hooks.ts:496–514  ·  view source on GitHub ↗
(
  storeOrStoreId: StoreOrStoreId | undefined,
  settable: string,
  get: (parameter: Parameter, store: Store) => Thing,
  getDeps?: DependencyList,
  then?: (store: Store, thing: Thing) => void,
  thenDeps?: DependencyList,
  ...args: (Id | GetId<Parameter>)[]
)

Source from the content-addressed store, hash-verified

494 );
495
496const useStoreSetCallback = <Parameter, Thing>(
497 storeOrStoreId: StoreOrStoreId | undefined,
498 settable: string,
499 get: (parameter: Parameter, store: Store) => Thing,
500 getDeps?: DependencyList,
501 then?: (store: Store, thing: Thing) => void,
502 thenDeps?: DependencyList,
503 ...args: (Id | GetId<Parameter>)[]
504): ParameterizedCallback<Parameter> =>
505 useSetCallback(
506 useStoreOrStoreById(storeOrStoreId),
507 settable,
508 get,
509 getDeps,
510 then,
511 thenDeps,
512 SET,
513 ...args,
514 );
515
516const useQueriesSetCallback = <Parameter, Thing>(
517 queriesOrQueriesId: QueriesOrQueriesId | undefined,

Callers 8

useSetTablesCallbackFunction · 0.70
useSetTableCallbackFunction · 0.70
useSetRowCallbackFunction · 0.70
useSetPartialRowCallbackFunction · 0.70
useSetCellCallbackFunction · 0.70
useSetValuesCallbackFunction · 0.70
useSetValueCallbackFunction · 0.70

Calls 2

useStoreOrStoreByIdFunction · 0.90
useSetCallbackFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…