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

Function useSetPartialRowCallback

src/ui-react/hooks.ts:1000–1020  ·  view source on GitHub ↗
(
  tableId: Id | GetId<Parameter>,
  rowId: Id | GetId<Parameter>,
  getPartialRow: (parameter: Parameter, store: Store) => Row,
  getPartialRowDeps?: DependencyList,
  storeOrStoreId?: StoreOrStoreId,
  then?: (store: Store, partialRow: Row) => void,
  thenDeps?: DependencyList,
)

Source from the content-addressed store, hash-verified

998};
999
1000export const useSetPartialRowCallback: typeof useSetPartialRowCallbackDecl = <
1001 Parameter,
1002>(
1003 tableId: Id | GetId<Parameter>,
1004 rowId: Id | GetId<Parameter>,
1005 getPartialRow: (parameter: Parameter, store: Store) => Row,
1006 getPartialRowDeps?: DependencyList,
1007 storeOrStoreId?: StoreOrStoreId,
1008 then?: (store: Store, partialRow: Row) => void,
1009 thenDeps?: DependencyList,
1010): ParameterizedCallback<Parameter> =>
1011 useStoreSetCallback(
1012 storeOrStoreId,
1013 PARTIAL + ROW,
1014 getPartialRow,
1015 getPartialRowDeps,
1016 then,
1017 thenDeps,
1018 tableId,
1019 rowId,
1020 );
1021
1022export const useSetCellCallback: typeof useSetCellCallbackDecl = <Parameter>(
1023 tableId: Id | GetId<Parameter>,

Callers 4

WriterFunction · 0.90
TestFunction · 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…