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 handle reducers having child reducers #6

Open simvisfear opened 7 years ago

simvisfear commented 7 years ago

I have been working on chunking, for a big application and have come across a situation where parts of my store have children. (Example shown below)

Store: { holidays: { booking: {}, payment: {}, reprice: {} }, hotels: {}, flights: {}, }

In the above store part, the holidays itself has a combinereducer() that combines child reducers (booking, payment and reprice).

Can you help me on how to do this with chunking explained here? (how to pass them to components when I call asyncRoute() and how to register them).

Thanks in advance