You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is a bad network, it can be possible that a new request is sent to the apiService while the old one has not yet been finished. This can result in orders suddenly changing. We should prevent such behavior and cancel the order.updateFromAPI(result.data); line when a newer request has been sent. So on sending an update, cancel any previous update.
The text was updated successfully, but these errors were encountered:
Currently, the
updateOrder
method in thesalesService
looks as follows:When there is a bad network, it can be possible that a new request is sent to the apiService while the old one has not yet been finished. This can result in orders suddenly changing. We should prevent such behavior and cancel the
order.updateFromAPI(result.data);
line when a newer request has been sent. So on sending an update, cancel any previous update.The text was updated successfully, but these errors were encountered: