applyAsyncEpics

A function that takes a stream of Epics and returns a store enhancer. for dynamic Epic injection.

Arguments

Returns

(Function): (Function): A store enhancer that is used as an argument for createStore. to enable dynamic Epic injection.

Example: Setting-up The dynamic Epic Injection

./src/epics

import { createRootEpic } from '@react-observatory/inject-epic'

const logger = action$ =>
  action$
    .ofType('Up')
    .do(console.log)
    .ignoreElements()

const { epic$, rootEpic } = createRootEpic(logger)

export { epic$, rootEpic }

./src/configureStore

Last updated