1.6.0 • Published 3 years ago

redux-saga-uniq v1.6.0

Weekly downloads
56
License
MIT
Repository
github
Last release
3 years ago

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 for take(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 to saga)

takeUniqWith(predicate, pattern, saga, ...args)

  • comparator: Function - invoked to compare each action for uniqueness.

  • pattern: String | Array | Function - for more information see docs for take(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 to saga)

1.6.0

3 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago