In my component, I have
this.uploadService.onUpload({
some: data
})
In my uploadService
, I have
onUpload($event: SubmissionFileUpload) {
this.userDetails$ = this.homeService.getUserDetails();
this.userDetails$.subscribe(
res => {
this.userDetails = res;
});
this.store.dispatch(new UploadActions.UploadPresignAction(this.userDetails.jwt, $event));
}
How can my component be notified when the dispatched action is complete?