redux-io
FSA-compliant io monad middleware for Redux.
This is based on redux-future.
npm install --save redux-io
Usage
;const createStoreWithMiddleware = createStore
Example
; const io = ;store;
Using in combination with redux-actions
Because it supports FSA actions, you can use redux-io in combination with redux-actions.
Example: Action creators
const io = ; const action = ;store;
Example: Future(IO)
You can use redux-io
together with redux-future
.
// futureIo :: Future(IO(String))const futureIo = { const io = ; ;}; const action = ;store;