diff --git a/frontend/src/component/feature/view-edit-container.jsx b/frontend/src/component/feature/view-edit-container.jsx index 389c203051..f08f9af9db 100644 --- a/frontend/src/component/feature/view-edit-container.jsx +++ b/frontend/src/component/feature/view-edit-container.jsx @@ -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,