MCPcopy
hub / github.com/microsoft/SandDance / redo

Method redo

packages/sanddance-explorer/src/explorer.tsx:674–679  ·  view source on GitHub ↗
(historyIndex = this.state.historyIndex + 1)

Source from the content-addressed store, hash-verified

672 }
673
674 public redo(historyIndex = this.state.historyIndex + 1) {
675 if (historyIndex >= this.state.historyItems.length) return;
676 const newState = this.replay(historyIndex);
677 this.rebaseFilter = true;
678 this.setState({ ...newState as State, historyIndex });
679 }
680
681 public changespecCapabilities(
682 specCapabilities: SandDance.specs.SpecCapabilities,

Callers 3

renderMethod · 0.95
HistoryFunction · 0.45
index.tsxFile · 0.45

Calls 1

replayMethod · 0.95

Tested by

no test coverage detected