MCPcopy Index your code
hub / github.com/microsoft/SandDance / undo

Method undo

packages/sanddance-explorer/src/explorer.tsx:666–672  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

664 }
665
666 public undo() {
667 const historyIndex = this.state.historyIndex - 1;
668 if (historyIndex < 0) return;
669 const newState = this.replay(historyIndex);
670 this.rebaseFilter = true;
671 this.setState({ ...newState as State, historyIndex });
672 }
673
674 public redo(historyIndex = this.state.historyIndex + 1) {
675 if (historyIndex >= this.state.historyItems.length) return;

Callers 2

renderMethod · 0.95
index.tsxFile · 0.45

Calls 1

replayMethod · 0.95

Tested by

no test coverage detected