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

Function useSetCellCallback

src/ui-react/hooks.ts:1022–1042  ·  view source on GitHub ↗
(
  tableId: Id | GetId<Parameter>,
  rowId: Id | GetId<Parameter>,
  cellId: Id | GetId<Parameter>,
  getCell: (parameter: Parameter, store: Store) => Cell | MapCell,
  getCellDeps?: DependencyList,
  storeOrStoreId?: StoreOrStoreId,
  then?: (store: Store, cell: Cell | MapCell) => void,
  thenDeps?: DependencyList,
)

Source from the content-addressed store, hash-verified

1020 );
1021
1022export const useSetCellCallback: typeof useSetCellCallbackDecl = <Parameter>(
1023 tableId: Id | GetId<Parameter>,
1024 rowId: Id | GetId<Parameter>,
1025 cellId: Id | GetId<Parameter>,
1026 getCell: (parameter: Parameter, store: Store) => Cell | MapCell,
1027 getCellDeps?: DependencyList,
1028 storeOrStoreId?: StoreOrStoreId,
1029 then?: (store: Store, cell: Cell | MapCell) => void,
1030 thenDeps?: DependencyList,
1031): ParameterizedCallback<Parameter> =>
1032 useStoreSetCallback(
1033 storeOrStoreId,
1034 CELL,
1035 getCell,
1036 getCellDeps,
1037 then,
1038 thenDeps,
1039 tableId,
1040 rowId,
1041 cellId,
1042 );
1043
1044export const useSetValuesCallback: typeof useSetValuesCallbackDecl = <
1045 Parameter,

Callers 9

WriterFunction · 0.90
TestFunction · 0.90
useCellStateFunction · 0.90
TableViewFunction · 0.90
QueryViewFunction · 0.90
DetailsFunction · 0.90
AddCellFunction · 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…