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');

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store