createEpicMiddleware([options])
A function that creates the redux-observable middleware as a Redux Subspace middleware.
Arguments
options
(Object): A list of options to pass to the middleware. These are simply passed through to the underlyingredux-observable
createEpicMiddleware
function, so refer to their documentation for supported options.
Returns
(Function): The middleware.
Examples
import { createStore } from 'redux'
import { applyMiddleware } from 'redux-subspace'
import { createEpicMiddleware } from 'redux-subspace-observable'
import { reducer, epic } from 'somewhere'
const epicMiddleware = createEpicMiddleware()
const store = createStore(reducer, applyMiddleware(epicMiddleware))
epicMiddleware.run(epic)