MCEMS / dispatch

dispatch console
https://dispatch.bergems.org/
1 stars 0 forks source link

Fix timer leak #19

Closed benburwell closed 8 years ago

benburwell commented 8 years ago

A timer leak was occurring because the setInterval() was not being cleared when the AlertTable component was re-mounted. By storing the timer in the component, we are able to clear it in componentWillUnmount, which resolves this issue.