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] Add Custom Fetcher to get error code #1923

Open
cqh963852 opened this issue Dec 23, 2024 · 0 comments
Open

[Feature Request] Add Custom Fetcher to get error code #1923

cqh963852 opened this issue Dec 23, 2024 · 0 comments

Comments

@cqh963852
Copy link

Is your feature request related to a problem? Please describe.

I am create a form. user can create a org.

but if there is a same name org. user won't create success.

I want show a info so the user know what happen.

but I can't get the error code from the Error message due to it already handle by internal code

https://github.com/zenstackhq/zenstack/blob/689d013796342db88777bb75b478f0b9fce2598c/packages/plugins/swr/src/runtime/index.ts#L408C9-L408C15

Describe the solution you'd like

Add a fether to ZenStackHooksProvider so that I can get the error code.

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