MCPcopy
hub / github.com/redux-observable/redux-observable / epic

Function epic

test/createEpicMiddleware-spec.ts:46–50  ·  view source on GitHub ↗
(action$, _state$)

Source from the content-addressed store, hash-verified

44 spySandbox.spy(console, 'warn');
45 const reducer: Reducer = (state = [], action) => state.concat(action);
46 const epic: Epic = (action$, _state$) => action$.pipe(
47 ofType('PING'),
48 map(() => ({ type: 'PONG' })),
49 ignoreElements(),
50 );
51
52 const middleware = createEpicMiddleware();
53 createStore(reducer, applyMiddleware(middleware));

Callers 2

mergerFunction · 0.85
epicMiddlewareFunction · 0.85

Calls 1

ofTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…