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

Function reject

core/transaction.ts:226–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 }
225
226 function reject() {
227 const entitiesToRebase = new Set<AnyEntity>();
228 for (const change of changes) {
229 entitiesToRebase.add(change.entity);
230 change.rollback();
231 deregisterEntityChange(change);
232 }
233
234 for (const entity of entitiesToRebase) {
235 rebaseEntityChanges(entity);
236 }
237 }
238
239 function undo() {
240 const entitiesToRebase = new Set<AnyEntity>();

Callers

nothing calls this directly

Calls 3

deregisterEntityChangeFunction · 0.85
rebaseEntityChangesFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected