-
Notifications
You must be signed in to change notification settings - Fork 100
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
与umi 的 useRequest 一起使用时,捕获不到全局错误 #36
Comments
这个的确是预期行为,因为 hox 的状态是存在一个独立的组件树之中的,所以你在 cc @brickspert |
v2 这部分有什么解决思路吗? |
Closed
https://codesandbox.io/s/stupefied-euler-jgq93?file=/src/CountBtn.js |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当和umi的useRequest一起使用时,我在组件最外层配置了UseAPIProvider的onError属性,当接口500时,不执行onError的回调函数
我直接使用useRequest是可以的捕获到500错误的
The text was updated successfully, but these errors were encountered: