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

Function useCheckpointAction

src/ui-react/hooks.ts:565–577  ·  view source on GitHub ↗
(
  checkpointsOrCheckpointsId: CheckpointsOrCheckpointsId | undefined,
  action: string,
  arg?: string,
)

Source from the content-addressed store, hash-verified

563};
564
565const useCheckpointAction = (
566 checkpointsOrCheckpointsId: CheckpointsOrCheckpointsId | undefined,
567 action: string,
568 arg?: string,
569) => {
570 const checkpoints: any = useCheckpointsOrCheckpointsById(
571 checkpointsOrCheckpointsId,
572 );
573 return useCallback(
574 () => checkpoints?.[action](arg),
575 [checkpoints, action, arg],
576 );
577};
578
579const useSortedRowIdsImpl = (
580 tableId: Id,

Callers 2

useGoBackwardCallbackFunction · 0.70
useGoForwardCallbackFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…