MCPcopy Create free account
hub / github.com/curiores/SerialAnalyzer / componentDidMount

Method componentDidMount

src/Components/Spectrum.js:318–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316
317 timer = null;
318 componentDidMount(){
319 // This will refresh the chart as often as indiciated
320 // in the variable refreshRate
321 this.timer = setInterval(() => {
322 this.updateChart();
323 }, refreshRate);
324 }
325
326 componentWillUnmount(){
327 clearInterval(this.timer);

Callers

nothing calls this directly

Calls 1

updateChartMethod · 0.95

Tested by

no test coverage detected