createEpicMiddleware([options])

A function that creates the redux-observable middleware as a Redux Subspace middleware.

Arguments

  1. options (Object): A list of options to pass to the middleware. These are simply passed through to the underlying redux-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)

results matching ""

    No results matching ""