How to manage an array of entities (withEntities, withState) #4881
Unanswered
eduardheller
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm facing a challenge in our project where we deal with arrays that need to hold state.
To better separate concerns, my current approach is to split each array into two separate stores:
withEntities
)Now I struggle to get the best solution to reference a specific entity to the second store.
For now I use an assign method in
withMethods
, which uses thesignalMethod<Entity>
. I assign in it a component throughngOnInit
.Am I actually on the right track? Is there a better way?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions