Error Retry ​
By setting options.retryCount, set the number of error retries, useRequest will retry after it fails.
Code demonstration ​
API ​
Options ​
| Property | Description | Type | Default |
|---|---|---|---|
| retryCount | The number of retries. If set to -1, it will try again indefinitely. | number | - |
| retryInterval |
| number | - |
Remark
cancelcan cancel the ongoing retry behavior.