Skip to content

Commit

Permalink
[Uptime] Prevent duplicate requests on load for index status (elastic…
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jul 3, 2020
1 parent f7fe5f2 commit 54fb52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/uptime/public/state/effects/index_status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { takeLatest } from 'redux-saga/effects';
import { takeLeading } from 'redux-saga/effects';
import { indexStatusAction } from '../actions';
import { fetchIndexStatus } from '../api';
import { fetchEffectFactory } from './fetch_effect';

export function* fetchIndexStatusEffect() {
yield takeLatest(
yield takeLeading(
indexStatusAction.get,
fetchEffectFactory(fetchIndexStatus, indexStatusAction.success, indexStatusAction.fail)
);
Expand Down

0 comments on commit 54fb52f

Please sign in to comment.