redux-observable-adapter-most
Use most.js with redux-observable
Install
This requires peer dependencies of rxjs@5
and most@1
, which will have to be installed as well.
npm install --save redux-observable-adapter-most
Usage
This library basically will convert the RxJS ActionsObservable
provided to your Epics into a most.js version. Then the most.js Stream you return in your Epic will be converted back to an RxJS Observable inside the middleware.
; const epicMiddleware = ; // your Epics are now most.js streams const pingPongEpic = action$ ;
The most.js Stream is an ActionsStream which has the equivalent ofType
helper. If you prefer the functional composition way, you can use it too:
; const pingPongEpic = { const ping$ = ; return ;};