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

Function useCheckpoint

src/ui-react/hooks.ts:2186–2195  ·  view source on GitHub ↗
(
  checkpointId: Id,
  checkpointsOrCheckpointsId?: CheckpointsOrCheckpointsId,
)

Source from the content-addressed store, hash-verified

2184 );
2185
2186export const useCheckpoint: typeof useCheckpointDecl = (
2187 checkpointId: Id,
2188 checkpointsOrCheckpointsId?: CheckpointsOrCheckpointsId,
2189): string | undefined =>
2190 useListenable(
2191 CHECKPOINT,
2192 useCheckpointsOrCheckpointsById(checkpointsOrCheckpointsId),
2193 ReturnType.CellOrValue,
2194 [checkpointId],
2195 );
2196
2197export const useSetCheckpointCallback: typeof useSetCheckpointCallbackDecl = <
2198 Parameter,

Callers 1

CheckpointViewFunction · 0.90

Calls 2

useListenableFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…