1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

clear timer

This commit is contained in:
sveisvei 2016-12-05 15:23:17 +01:00
parent 6704d35a6c
commit 7836910ccb

View File

@ -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,