MCPcopy
hub / github.com/tinyplex/tinybase / createGoBackwardCallback

Function createGoBackwardCallback

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

Source from the content-addressed store, hash-verified

921 );
922
923export const createGoBackwardCallback = (
924 checkpointsOrCheckpointsId?: MaybeGetter<Checkpoints | Id | undefined>,
925): (() => void) => {
926 const getCheckpoints = resolveCheckpoints(checkpointsOrCheckpointsId);
927 return () => getCheckpoints()?.goBackward();
928};
929
930export const createGoForwardCallback = (
931 checkpointsOrCheckpointsId?: MaybeGetter<Checkpoints | Id | undefined>,

Callers 1

GettersFunction · 0.50

Calls 3

resolveCheckpointsFunction · 0.70
getCheckpointsFunction · 0.70
goBackwardMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…