mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): all components should use alertStore.fetchWithThrottle()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user