Getting started — Redux-Observable

Jun 7 · 4 min read


The flow for Redux and Redux-Observable (Illustration: Tomas Nilsson)
import { 
} from 'redux-observable'
const epic1 = action$ => actions$.ignoreElements(); // RxJS
const epic2 = action$ => actions$.ignoreElements(); // RxJS
const rootEpic = combineEpics(epic1, epic2); // redux-observerconst store = createStore( // redux
rootReducer, // redux
applyMiddleware( // redux
createEpicMiddleware(rootEpic) // redux-observer
const $doubleClick = actions$ => {   const click$ = action$.ofType('CLICK');   return click$
.filter(clicks => clicks.length === 2)
.map(clicks => ({type: "DOUBLE_CLICK"}) // convert stream into plain normal action

So at architecture design level, Rx programming, it is about how your application behave instead of how does it implement the different features of our application.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade