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

Function useCheckpointAction

src/ui-solid/primitives.ts:400–413  ·  view source on GitHub ↗
(
  checkpointsOrCheckpointsId: MaybeCheckpointsOrCheckpointsId | undefined,
  action: string,
  arg?: string,
)

Source from the content-addressed store, hash-verified

398};
399
400const useCheckpointAction = (
401 checkpointsOrCheckpointsId: MaybeCheckpointsOrCheckpointsId | undefined,
402 action: string,
403 arg?: string,
404) => {
405 const checkpoints = useCheckpointsOrCheckpointsById(
406 checkpointsOrCheckpointsId,
407 );
408 return () =>
409 (
410 getThing(checkpoints) as
411 {[method: string]: (arg?: string) => Checkpoints} | undefined
412 )?.[action](arg);
413};
414
415const useSortedRowIdsImpl = (
416 tableId: MaybeAccessor<Id>,

Callers 2

useGoBackwardCallbackFunction · 0.70
useGoForwardCallbackFunction · 0.70

Calls 2

getThingFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…