Assuming MatDialog or any "dialog opening service" implementation, where a dialog is opened with dialogService.open, would the "dialog opening logic" be suited in the component itself, or in a Store library (NGRX) effect?
component.ts
foo(): void {
this.dialogService.openDialog(BarDialog, params)
}
vs
component.ts
foo(): void {
this.store.dispatchAction(OpenBarDialog, params)
}
and the Effect would have the "dialog opening logic". My intuition is that "opening a dialog is a side effect".