mirror of
https://github.com/gosticks/web.git
synced 2026-12-03 17:51:39 +00:00
Stop updating the status on component unmount
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -23,6 +23,10 @@ class StatusBadge extends Component {
|
||||
this.updateStatus();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.updateHandler.cancel();
|
||||
}
|
||||
|
||||
render() {
|
||||
const { t } = this.props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user