Stop updating the status on component unmount

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-06-16 15:09:08 -04:00
parent 48243e18bc
commit b5e1350b0f
+4
View File
@@ -23,6 +23,10 @@ class StatusBadge extends Component {
this.updateStatus();
}
componentWillUnmount() {
this.updateHandler.cancel();
}
render() {
const { t } = this.props;