So i have a redux app, setup with React Router. Upon visiting each page in my routes, I fetch data for that page.
This works fine until I reach pageX/:id. This page has a list of items, each of these items are views that have their own state. (For example one of the items is a multiple choice survey, another is a text input block).
The items are displayed in a list, and the number and permutation of items is not know until after the data for the page is fetched.
The way I am handling this currently is by storing all my state within the components as they are rendered.
I want to refactor this up into redux state, but I am not sure how to do this. Is there a good way of dynamically attaching reducers to the application state? Or is there another pattern I can follow