-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[useRequest] onError
not catching onBefore
error
#177
Comments
It is just an example, and there is nothing wrong with If you still don't understand, I make a better example |
onError
not catching onBefore
erroronError
not catching onBefore
error
Got it. It is a manual error thrown in the 'onBefore' configuration item that interrupts the entire code flow. It seems to be a problem, which will be solved later in the discussion. |
* feat: useFullscreen hook支持默认参数。并且同步更新文档与demo。 * feat: useFullscreen新增配置defaultElement项 * fix: useFullscreen defaultElement类型提示错误修复 * docs: 更正 useDrop 文档错误 * fix: 修复在使用useRequest方法时,在onBefore配置项中手动抛出错误时会导致整个代码流程中断的问题(#177)
@XiaoDaiGua-Ray @Airkro Done. version: |
Describe the bug
throw an error in
onBefore
,onError
callback is not fire...Steps to reproduce
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: