Skip to content

Commit 8c9a0fa

Browse files
42381 fix(statusFIlter): use takeLatest for list to avoid dropping request on rapid filter change
1 parent ecb1efa commit 8c9a0fa

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

  • frontend/src/public/redux/workflows

frontend/src/public/redux/workflows/saga.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
import uniqBy from 'lodash.uniqby';
2-
import {
3-
all,
4-
fork,
5-
put,
6-
takeEvery,
7-
select,
8-
takeLatest,
9-
call,
10-
delay,
11-
take,
12-
takeLeading,
13-
race,
14-
} from 'redux-saga/effects';
2+
import { all, fork, put, takeEvery, select, takeLatest, call, delay, take, race } from 'redux-saga/effects';
153
import { EventChannel } from 'redux-saga';
164

175
import { PayloadAction } from '@reduxjs/toolkit';
@@ -851,7 +839,7 @@ export function* handleApplyFilters() {
851839
}
852840

853841
export function* watchFetchWorkflowsList() {
854-
yield takeLeading(loadWorkflowsList.type, fetchWorkflowsList);
842+
yield takeLatest(loadWorkflowsList.type, fetchWorkflowsList);
855843
}
856844

857845
export function* watchChangeWorkflowLogViewSettings() {

0 commit comments

Comments
 (0)