Angular - State Management
Examine this effect code:
What is a potential issue with this effect assuming
saveData$ = createEffect(() => this.actions$.pipe(
ofType('SAVE_DATA'),
switchMap(action => this.api.save(action.payload)),
map(() => ({ type: 'SAVE_SUCCESS' }))
))What is a potential issue with this effect assuming
api.save returns an observable?