/of-type

Operator ofType for redux-observable, compatible with redux-batch-middleware

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

@vslutov/of-type

Build Status npm version Greenkeeper badge Coverage Status JavaScript Style Guide

Operator ofType for redux-observable, compatible with redux-batch-middleware

Install

npm install @vslutov/of-type

Code example

import { ofType } from '@vslutov/of-type'

const setProp = createAction('PROP/SET')

const propEpic = action$ => action$.pipe(
  ofType(setProp, /* other actions */),
  // do something usefull
)