redux-saga-uniq v1.6.0
redux-saga-uniq
Saga helpers which spawns duplicate-free sagas.
Usage
import { takeUniqBy, takeUniqWith } from 'redux-saga-uniq';takeUniqBy(iteratee, pattern, saga, ...args)
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 functionargs: Array<any>- arguments to be passed to the started task.takeUniqBywill add the incoming action to the argument list (i.e. the action will be the last argument provided tosaga)
takeUniqWith(predicate, pattern, saga, ...args)
comparator: Function- invoked to compare each action for uniqueness.pattern: String | Array | Function- for more information see docs fortake(pattern)saga: Function- a Generator functionargs: Array<any>- arguments to be passed to the started task.takeUniqWithwill add the incoming action to the argument list (i.e. the action will be the last argument provided tosaga)