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

Function getCheckpoint

src/ui-svelte/functions.svelte.ts:912–921  ·  view source on GitHub ↗
(
  checkpointId: MaybeGetter<Id>,
  checkpointsOrCheckpointsId?: MaybeGetter<Checkpoints | Id | undefined>,
)

Source from the content-addressed store, hash-verified

910 );
911
912export const getCheckpoint = (
913 checkpointId: MaybeGetter<Id>,
914 checkpointsOrCheckpointsId?: MaybeGetter<Checkpoints | Id | undefined>,
915): {readonly current: string | undefined} =>
916 createListenable(
917 resolveCheckpoints(checkpointsOrCheckpointsId),
918 CHECKPOINT,
919 undefined,
920 () => [maybeGet(checkpointId)],
921 );
922
923export const createGoBackwardCallback = (
924 checkpointsOrCheckpointsId?: MaybeGetter<Checkpoints | Id | undefined>,

Callers 2

useSetCheckpointCallbackFunction · 0.50
useSetCheckpointCallbackFunction · 0.50

Calls 3

createListenableFunction · 0.70
resolveCheckpointsFunction · 0.70
maybeGetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…