zenstack
zenstack copied to clipboard
[Feature Request] Add Custom Fetcher to get error code
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.