Skip to content

Need advice in modelling and structuing #2881

Answered by kamcma
Mayank-84 asked this question in Q&A
Discussion options

You must be logged in to vote

The way you do this is have the parent hold an IdentifiedArray<ChildFeature.State> in its state and have an action case childAction(IdentifiedAction<ChildFeature.Action>). Then in your reducer body, there is a .forEach() operator you point at this state and action and the child reducer.

In the case studies in this repository, there are several examples having to do with lists. Have a look at those.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Mayank-84
Comment options

@kamcma
Comment options

Answer selected by Mayank-84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants