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

Method componentDidMount

src/Components/Monitor.js:61–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60 timer = null;
61 componentDidMount() {
62 // This will refresh the chart as often as indiciated
63 // in the variable refreshRate
64 this.timer = setInterval(() => {
65 this.updateMonitor();
66 }, refreshRate);
67 }
68
69 componentWillUnmount() {
70 clearInterval(this.timer);

Callers

nothing calls this directly

Calls 1

updateMonitorMethod · 0.95

Tested by

no test coverage detected