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

Function useStoreSetCallback

src/ui-solid/primitives.ts:330–344  ·  view source on GitHub ↗
(
  storeOrStoreId: MaybeAccessor<StoreOrStoreId | undefined>,
  settable: string,
  get: (parameter: Parameter, store: Store) => Thing,
  then?: (store: Store, thing: Thing) => void,
  ...args: (MaybeAccessor<Id> | GetId<Parameter>)[]
)

Source from the content-addressed store, hash-verified

328 );
329
330const useStoreSetCallback = <Parameter, Thing>(
331 storeOrStoreId: MaybeAccessor<StoreOrStoreId | undefined>,
332 settable: string,
333 get: (parameter: Parameter, store: Store) => Thing,
334 then?: (store: Store, thing: Thing) => void,
335 ...args: (MaybeAccessor<Id> | GetId<Parameter>)[]
336): ParameterizedCallback<Parameter> =>
337 useSetCallback(
338 useStoreOrStoreById(storeOrStoreId),
339 settable,
340 get,
341 then,
342 SET,
343 ...args,
344 );
345
346const useQueriesSetCallback = <Parameter, Thing>(
347 queriesOrQueriesId: MaybeAccessor<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

useSetCallbackFunction · 0.70
useStoreOrStoreByIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…