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

Method setCleanState

packages/sanddance-explorer/src/explorer.tsx:618–631  ·  view source on GitHub ↗
(newState: State)

Source from the content-addressed store, hash-verified

616 public addHistory(historicInsight: Partial<HistoricInsight>, historyAction: HistoryAction, additionalUIState?: Partial<UIState>) {
617
618 const setCleanState = (newState: State) => {
619 const cleanState = { ...newState, ...additionalUIState };
620 if (!cleanState.note) {
621 cleanState.note = null;
622 }
623 delete cleanState.rebaseFilter;
624
625 if (this.viewer) {
626 const { signalValues } = this.viewer.getInsight();
627 cleanState.signalValues = { ...this.state.signalValues, ...signalValues, ...cleanState.signalValues };
628 }
629
630 this.setState(cleanState);
631 };
632
633 if (historyAction.omit) {
634 setCleanState(historicInsight as State);

Callers

nothing calls this directly

Calls 1

getInsightMethod · 0.45

Tested by

no test coverage detected