How to combineReducers causes code to break?

Posted by Jessica Taylor | Updated on

Want to combineReducers causes code to break? With combined reducers your store will have data structure like that:

So you should adjust your containers to work with combined store. For example in DimensionPickerContainer.js you should change mapStateToProps function:

You can also name your reduces in store, so they would not look ugly in data structure. E.g. combineReducers({ dimensionPicker: DimensionPickerReducer, dataTable: DataTableReducer})


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers