Skip to content

Commit 54fb52f

Browse files
committed
[Uptime] Prevent duplicate requests on load for index status (#70585)
1 parent f7fe5f2 commit 54fb52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugins/uptime/public/state/effects/index_status.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { takeLatest } from 'redux-saga/effects';
7+
import { takeLeading } from 'redux-saga/effects';
88
import { indexStatusAction } from '../actions';
99
import { fetchIndexStatus } from '../api';
1010
import { fetchEffectFactory } from './fetch_effect';
1111

1212
export function* fetchIndexStatusEffect() {
13-
yield takeLatest(
13+
yield takeLeading(
1414
indexStatusAction.get,
1515
fetchEffectFactory(fetchIndexStatus, indexStatusAction.success, indexStatusAction.fail)
1616
);

0 commit comments

Comments
 (0)