fix(ui): all components should use alertStore.fetchWithThrottle()

This commit is contained in:
Łukasz Mierzwa
2018-08-21 20:39:32 +01:00
parent 467364f383
commit 2e36eff52e

View File

@@ -28,7 +28,7 @@ const Fetcher = observer(
this.interval = newInterval;
this.timer = setInterval(
() => alertStore.fetch(),
() => alertStore.fetchWithThrottle(),
this.interval * 1000
);
}
@@ -37,7 +37,7 @@ const Fetcher = observer(
componentDidUpdate() {
const { alertStore } = this.props;
alertStore.fetch();
alertStore.fetchWithThrottle();
this.setTimer();
}
@@ -45,7 +45,7 @@ const Fetcher = observer(
componentDidMount() {
const { alertStore } = this.props;
alertStore.fetch();
alertStore.fetchWithThrottle();
this.setTimer();
}