MCPcopy Index your code
hub / github.com/tinyplex/tinybase / useSetPartialRowCallback

Function useSetPartialRowCallback

src/ui-solid/primitives.ts:799–813  ·  view source on GitHub ↗
(
  tableId: MaybeAccessor<Id> | GetId<Parameter>,
  rowId: MaybeAccessor<Id> | GetId<Parameter>,
  getPartialRow: (parameter: Parameter, store: Store) => Row,
  storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
  then?: (store: Store, partialRow: Row) => void,
)

Source from the content-addressed store, hash-verified

797};
798
799export const useSetPartialRowCallback = <Parameter>(
800 tableId: MaybeAccessor<Id> | GetId<Parameter>,
801 rowId: MaybeAccessor<Id> | GetId<Parameter>,
802 getPartialRow: (parameter: Parameter, store: Store) => Row,
803 storeOrStoreId?: MaybeAccessor<StoreOrStoreId | undefined>,
804 then?: (store: Store, partialRow: Row) => void,
805): ParameterizedCallback<Parameter> =>
806 useStoreSetCallback(
807 storeOrStoreId,
808 PARTIAL + ROW,
809 getPartialRow,
810 then,
811 tableId,
812 rowId,
813 );
814
815export const useSetCellCallback = <Parameter>(
816 tableId: MaybeAccessor<Id> | GetId<Parameter>,

Callers 2

WriterFunction · 0.90
primitives.test.tsFile · 0.90

Calls 1

useStoreSetCallbackFunction · 0.70

Tested by 1

WriterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…