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

Function storeChanged

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

Source from the content-addressed store, hash-verified

114 clearCheckpointIds(backwardIds, size(backwardIds) - backwardIdsSize);
115
116 const storeChanged = () =>
117 ifNotUndefined(currentId, () => {
118 arrayPush(backwardIds, currentId as Id);
119 trimBackwardsIds();
120 clearCheckpointIds(forwardIds);
121 currentId = undefined;
122 checkpointsChanged = 1;
123 });
124
125 const storeUnchanged = () => {
126 currentId = arrayPop(backwardIds);

Callers 1

_registerListenersFunction · 0.70

Calls 3

arrayPushFunction · 0.90
trimBackwardsIdsFunction · 0.70
clearCheckpointIdsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…