-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamically create new copies #102
Comments
@brennanerbz Look at how redux-form works for example - there is a single form reducer that creates many copies/instances of forms. I've used this pattern a lot and it works well. I've found that once you're comfortable writing reducers in that pattern there is little need for multireducer and it's almost always better to write one of these 'instance managing reducers' in case you need to support dynamic copies. |
Yeah, not really supported. Interesting idea, though. |
Any movement on this? Doesn't seem to work, if you're using your mulitreducer in an array but the length is constantly changing. I am fetching an api, so sometimes the results is 5, 10, 12, 15 and so on...Any thoughts on how to solve that? Not unless I say something along the lines of:
|
@adailey14 |
Is there a way to dynamically add/create copies?
Using your universal example, if the user took an action to create a new counter-- how would a new copy of the counter reducer be created?
The text was updated successfully, but these errors were encountered: