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

Function goTo

src/checkpoints/index.ts:221–232  ·  view source on GitHub ↗
(checkpointId: Id)

Source from the content-addressed store, hash-verified

219 };
220
221 const goTo = (checkpointId: Id): Checkpoints => {
222 const action = arrayHas(backwardIds, checkpointId)
223 ? goBackwardImpl
224 : arrayHas(forwardIds, checkpointId)
225 ? goForwardImpl
226 : undefined;
227 while (!isUndefined(action) && checkpointId != currentId) {
228 action();
229 }
230 callListenersIfChanged();
231 return checkpoints;
232 };
233
234 const addCheckpointIdsListener = (listener: CheckpointIdsListener): Id =>
235 addListener(listener, checkpointIdsListeners);

Callers

nothing calls this directly

Calls 3

arrayHasFunction · 0.90
isUndefinedFunction · 0.90
callListenersIfChangedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…