I am looking for example where I can update the existing akita store object and send that object to backend service for the updates.
What I know so far is that I can call update state service to update object and then I need to send the object.. is there any better approach for this?
//service
@action('Update Status')
updateCurrentStatus(status:string){
this.paymentStore.update((state) => {
state.data.currentStatus = status;
});
//I am planning to call http service here.
}
//update in component
this.service.updateCurrentStatus('approve');