Saga helpers which spawns duplicate-free sagas.
import { takeUniqBy, takeUniqWith } from 'redux-saga-uniq';
-
iteratee: Function
- invoked for each action to generate the criterion by which uniqueness is computed. -
pattern: String | Array | Function
- for more information see docs fortake(pattern)
-
saga: Function
- a Generator function -
args: Array<any>
- arguments to be passed to the started task.takeUniqBy
will add the incoming action to the argument list (i.e. the action will be the last argument provided tosaga
)
-
comparator: Function
- invoked to compare each action for uniqueness. -
pattern: String | Array | Function
- for more information see docs fortake(pattern)
-
saga: Function
- a Generator function -
args: Array<any>
- arguments to be passed to the started task.takeUniqWith
will add the incoming action to the argument list (i.e. the action will be the last argument provided tosaga
)
regenerator-runtime (or @babel/polyfill) is required for running in browser. Please make sure it's imported before redux-saga-uniq.