luigiplr / react-router-redux-rxjs-code-splitting

An example React Redux app using React Router & RxJS for route management & chunk loading respectively.
https://luigiplr.github.io/react-router-redux-rxjs-code-splitting
GNU General Public License v3.0
55 stars 11 forks source link

How to multiple reducers #5

Open rahulbansal89 opened 7 years ago

rahulbansal89 commented 7 years ago

As, in given example it demand for reducer function but if i have to combine and pass multiple reducer then how to handle it.

iphuongtt commented 7 years ago

You can do like this: const Page2 = asyncRoute(() => import('./pages/page2'), () => { return Promise.all([ import('reducers/page2'), import('reducers/page3') ... ]); })