S
S
Scorpic2021-03-05 14:09:03
Vue.js
Scorpic, 2021-03-05 14:09:03

How to control request sequence in API?

Hi all!

The client sends sequentially sends a chain of requests to the API, each of the requests depends on the previous one.
How to control requests and resulting errors in responses from the server. How to find out at which step an error occurred and continue from this point. Maybe there are some technologies and methods? Can this be solved with a service worker?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2021-03-05
@Casufi

Recursion + Promise

V
Vladimir Korotenko, 2021-03-05
@firedragon

Send consistently, control errors in the code.
What is your question?
Well, or use composition and return a bold answer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question