Currently I subscribe a ngRx effect on a "success" action (assuming my action is loadDataSuccess)?
createEffect(() => {
return this.actions$.pipe(
ofType(loadDataSuccess), ...
It somehow stings in my head, that this is bad practice. Is it better if I'd subscribe in a service on the selector for data (which will fire after the loadDataSuccess action) and then dispatch a new action loadAdditionalStuffAfterLoadingData ?
store.select(data).subscribe(
data => store.dispatch(loadAdditionalStuffAfterLoadingData(data)));