Dependent Request

Sometimes, you may encounter a situation where network requests depend on each other. For example, there are two requests (A and B); the request parameters of B request depend on the return result of A request. At this time, you can use ready to handle this dependency.

Automatic mode

In the automatic mode of manual=false, every time ready changes from false to true, a request will be automatically executed with the parameter options.defaultParams.

Manual mode

When manual=true manual request mode, as long as ready=false, the request triggered by run/runAsync will not be executed.

Last Updated: 7/1/2022, 8:28:34 AM
Contributors: John