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

Function addCheckpointImpl

src/checkpoints/index.ts:133–143  ·  view source on GitHub ↗
(label = EMPTY_STRING)

Source from the content-addressed store, hash-verified

131 let valueListenerId: string;
132
133 const addCheckpointImpl = (label = EMPTY_STRING): Id => {
134 if (isUndefined(currentId)) {
135 currentId = EMPTY_STRING + nextCheckpointId++;
136 mapSet(deltas, currentId, [cellsDelta, valuesDelta]);
137 setCheckpoint(currentId, label);
138 cellsDelta = mapNew();
139 valuesDelta = mapNew();
140 checkpointsChanged = 1;
141 }
142 return currentId as Id;
143 };
144
145 const goBackwardImpl = () => {
146 if (!arrayIsEmpty(backwardIds)) {

Callers 2

goBackwardImplFunction · 0.70
addCheckpointFunction · 0.70

Calls 4

isUndefinedFunction · 0.90
mapSetFunction · 0.90
mapNewFunction · 0.90
setCheckpointFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…