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

Function goTo

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:576–583  ·  view source on GitHub ↗
(checkpointId)

Source from the content-addressed store, hash-verified

574 return checkpoints;
575 };
576 const goTo = (checkpointId) => {
577 const action = arrayHas(backwardIds, checkpointId) ? goBackwardImpl : arrayHas(forwardIds, checkpointId) ? goForwardImpl : void 0;
578 while (!isUndefined(action) && checkpointId != currentId) {
579 action();
580 }
581 callListenersIfChanged();
582 return checkpoints;
583 };
584 const addCheckpointIdsListener = (listener) => addListener(listener, checkpointIdsListeners);
585 const addCheckpointListener = (checkpointId, listener) => addListener(listener, checkpointListeners, [checkpointId]);
586 const delListener = (listenerId) => {

Callers

nothing calls this directly

Calls 3

arrayHasFunction · 0.70
isUndefinedFunction · 0.70
callListenersIfChangedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…