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

Function rollback

core/store.ts:232–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 const changedData: Partial<Data> = {};
231
232 function rollback() {
233 const undoInput = pickBeforeFromChanges(changes);
234 store.update(id, undoInput);
235 }
236
237 runInAction(() => {
238 changedKeys.forEach((keyToUpdate) => {

Callers

nothing calls this directly

Calls 2

pickBeforeFromChangesFunction · 0.90
updateMethod · 0.65

Tested by

no test coverage detected