How can I receive http response in component where I dispatch the action. I don't want to store result in the component. I only want to use http response in the component.
@Action(GetNovels, { cancelUncompleted: true })
getNovels(ctx: StateContext<Novel[]>) {
return this.novelsService.getNovels().pipe(
tap(novels => {
ctx.setState(novels);
})
);
}
I tried to use life cycle hooks like ofActionSuccess but it is only returns the action I dispatched..
I look at the document but couldn't find any particular information about the subject.