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

Function goForwardImpl

src/checkpoints/index.ts:154–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 };
153
154 const goForwardImpl = () => {
155 if (!arrayIsEmpty(forwardIds)) {
156 arrayPush(backwardIds, currentId as Id);
157 currentId = arrayShift(forwardIds);
158 updateStore(1, currentId as Id);
159 checkpointsChanged = 1;
160 }
161 };
162
163 const callListenersIfChanged = (): void => {
164 if (checkpointsChanged) {

Callers 1

goForwardFunction · 0.70

Calls 4

arrayIsEmptyFunction · 0.90
arrayPushFunction · 0.90
arrayShiftFunction · 0.90
updateStoreFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…