mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
clear timer
This commit is contained in:
parent
6704d35a6c
commit
7836910ccb
@ -26,12 +26,16 @@ class EditFeatureToggleWrapper extends React.Component {
|
||||
}
|
||||
this.props.fetchSeenApps();
|
||||
this.props.fetchFeatureMetrics();
|
||||
setInterval(() => {
|
||||
this.timer = setInterval(() => {
|
||||
this.props.fetchSeenApps();
|
||||
this.props.fetchFeatureMetrics();
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
componentWillUnmount () {
|
||||
clearInterval(this.timer);
|
||||
}
|
||||
|
||||
render () {
|
||||
const {
|
||||
toggleFeature,
|
||||
|
Loading…
Reference in New Issue
Block a user