Refactoring redux state reducer

Hello,

I have developed a web application using ReactJs. And for managing state of the application, I used Redux library.

However, my reducer has become very fat. [Above 1000 lines of code]. So I split-up the reducer into multiple reducers each with specific web-app view.Then I used combineReducers helper from redux library to combine those reducers.

So technically, each reducer has its own state associated with it.

But this solution is not very flexible. It is not allowing me to access and update the state from another reducers.

Is there any better solution for this situation?

Thank you in advance!
Navnath

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.