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

Function useSetTableCallback

src/ui-react/hooks.ts:932–948  ·  view source on GitHub ↗
(
  tableId: Id | GetId<Parameter>,
  getTable: (parameter: Parameter, store: Store) => Table,
  getTableDeps?: DependencyList,
  storeOrStoreId?: StoreOrStoreId,
  then?: (store: Store, table: Table) => void,
  thenDeps?: DependencyList,
)

Source from the content-addressed store, hash-verified

930 );
931
932export const useSetTableCallback: typeof useSetTableCallbackDecl = <Parameter>(
933 tableId: Id | GetId<Parameter>,
934 getTable: (parameter: Parameter, store: Store) => Table,
935 getTableDeps?: DependencyList,
936 storeOrStoreId?: StoreOrStoreId,
937 then?: (store: Store, table: Table) => void,
938 thenDeps?: DependencyList,
939): ParameterizedCallback<Parameter> =>
940 useStoreSetCallback(
941 storeOrStoreId,
942 TABLE,
943 getTable,
944 getTableDeps,
945 then,
946 thenDeps,
947 tableId,
948 );
949
950export const useSetRowCallback: typeof useSetRowCallbackDecl = <Parameter>(
951 tableId: Id | GetId<Parameter>,

Callers 7

WriterFunction · 0.90
TestFunction · 0.90
useTableStateFunction · 0.90
AddTableFunction · 0.90
CloneTableFunction · 0.90
SettersFunction · 0.50
SettersFunction · 0.50

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 2

WriterFunction · 0.72
TestFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…