MCPcopy Create free account
hub / github.com/clientdb/clientdb / undo

Function undo

core/transaction.ts:239–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237 }
238
239 function undo() {
240 const entitiesToRebase = new Set<AnyEntity>();
241 for (const change of changes) {
242 entitiesToRebase.add(change.entity);
243 undoEntityChange(change);
244 }
245
246 for (const entity of entitiesToRebase) {
247 rebaseEntityChanges(entity);
248 }
249 }
250
251 return {
252 pushChange,

Callers 1

misc.spec.tsFile · 0.85

Calls 3

undoEntityChangeFunction · 0.85
rebaseEntityChangesFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected