DEV Community

Discussion on: Moving Material Dialog Lifecycle Into NgRx Effects

Collapse
 
chandlerbaskins profile image
Chandler Baskins

Component Store is a great fit for this. Using regular store makes sense if you have global dialogs or snackbars (similar apis). With Component store I would use an effect with no params (when nothing is passes it gets a signal or trigger to act off of) The tricky part would be how you setup the flow of the lifecycle. Do you use multiple effects and model it like that or do you handle the flow in one effect? Something I need to explore but alas haven't had time.