Skip to content
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

[Feature Request] 全局的 onError 钩子 #241

Open
ZiuChen opened this issue Jun 28, 2024 · 0 comments
Open

[Feature Request] 全局的 onError 钩子 #241

ZiuChen opened this issue Jun 28, 2024 · 0 comments

Comments

@ZiuChen
Copy link

ZiuChen commented Jun 28, 2024

需求描述 Feature Description

可以通过 setGlobalOptions 配置全局的 onError 钩子

建议的解决方案 Proposed Solution

支持通过 setGlobalOptions 将 onError 作为全局钩子注册,每个 useRequest 在触发出错时都会调用

其他信息 Other information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant