Skip to content
On this page

Ready

useRequest provides an options.ready, when its value is false, the request will never be sent.

  • 1、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.
  • 2、When manual=true manual request mode, as long as ready=false, the request triggered by run/runAsync will not be executed.

Code demonstration

Options

PropertyDescriptionTypeDefault
readyIs the current request readyboolean|Ref<boolean>true

Source

SourceDocsDemo