()
| 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); |
nothing calls this directly
no test coverage detected