salsita / prism

React / Redux action composition made simple http://salsita.github.io/prism/
496 stars 24 forks source link

Dynamic list of stateful components #85

Open dalgard opened 7 years ago

dalgard commented 7 years ago

Sorry if I'm missing a note about this, but does Prism come with a recommended way of handling dynamic lists of instantiable components?

I seem to remember redux-elm doing this, but not how? The problem would be in the reducer.

Relatedly, I can't figure out how to set initialState for such dynamically added components.

dalgard commented 7 years ago

I remember now that redux-elm used lifecycle actions to set up state for wrapped components.

Was this technique abandoned? And why?