I have been working on my first project with Redux for the last few weeks. An admin interface to manage and create questionnaires about patients data collection.
When writing a small application, everything seems easy and clear, if the application starts to grow and new features are added, obstacles arise. I had the feeling of writing the same code over and over again. Mostly for CRUD operations.
The first problem was to denormalize the entire state (the use of the library “normalizr” is encouraged by redux docs, I didn’t know it when I started and I did it manually) in a way to split it in small pieces, each with a reducer. This improves the ease to handle the state, but handling the relationships through ids by hand adds complexity to the reducers especially when deleting records.
... read the whole story at medium.com.