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

Method componentDidMount

src/Components/SerialChart.js:206–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205 timer = null;
206 componentDidMount() {
207 // This will refresh the chart as often as indiciated
208 // in the variable refreshRate
209 this.timer = setInterval(() => {
210 this.updateChart();
211 }, refreshRate);
212 }
213
214 componentWillUnmount() {
215 clearInterval(this.timer);

Callers

nothing calls this directly

Calls 1

updateChartMethod · 0.95

Tested by

no test coverage detected