@vslutov/of-type
Version:
Operator ofType for redux-observable, compatible with redux-batch-middleware
28 lines (20 loc) • 1.06 kB
Markdown
# @vslutov/of-type
[](https://travis-ci.org/vslutov/of-type)
[](https://badge.fury.io/js/%40vslutov%2Fof-type)
[](https://greenkeeper.io/)
[](https://coveralls.io/github/vslutov/of-type?branch=master)
[](https://standardjs.com)
Operator ofType for [redux-observable](https://redux-observable.js.org/), compatible with [redux-batch-middleware](https://github.com/mrydengren/redux-batch-middleware)
## Install
```sh
npm install @vslutov/of-type
```
## Code example
```js
import { ofType } from '@vslutov/of-type'
const setProp = createAction('PROP/SET')
const propEpic = action$ => action$.pipe(
ofType(setProp, /* other actions */),
// do something usefull
)
```