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

Function useSetCellCallback

src/ui-solid/primitives.ts:815–831  ·  view source on GitHub ↗
(
  tableId: MaybeAccessor<Id> | GetId<Parameter>,
  rowId: MaybeAccessor<Id> | GetId<Parameter>,
  cellId: MaybeAccessor<Id> | GetId<Parameter>,
  getCell: (parameter: Parameter, store: Store) => Cell | MapCell,
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
  then?: (store: Store, cell: Cell | MapCell) => void,
)

Source from the content-addressed store, hash-verified

813 );
814
815export const useSetCellCallback = <Parameter>(
816 tableId: MaybeAccessor<Id> | GetId<Parameter>,
817 rowId: MaybeAccessor<Id> | GetId<Parameter>,
818 cellId: MaybeAccessor<Id> | GetId<Parameter>,
819 getCell: (parameter: Parameter, store: Store) => Cell | MapCell,
820 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
821 then?: (store: Store, cell: Cell | MapCell) => void,
822): ParameterizedCallback<Parameter> =>
823 useStoreSetCallback(
824 storeOrStoreId,
825 CELL,
826 getCell,
827 then,
828 tableId,
829 rowId,
830 cellId,
831 );
832
833export const useSetValuesCallback = <Parameter>(
834 getValues: (parameter: Parameter, store: Store) => Values,

Callers 5

WriterFunction · 0.90
AddCellFunction · 0.90
TableViewFunction · 0.90
QueryViewFunction · 0.90
useCellStateFunction · 0.70

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 1

WriterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…