In this Angular app, the user fills inputs on a table, after each change, the app makes an http request to save changes, with each request, it sends a number which indicates the concurrency version. If the process is successful the server sends a response with the new version.
The problem comes when the user makes changes too fast, the post request will be sent before the previous response is received and therefore the concurrency number will not match.
I am new to angular, so, what is the best way to make a service that can send the requests one after another (one at a time) in a way that this allows me to save the concurrency version from a response to be used in the next request?
Thanks!
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments