zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[Feature Request] Add Custom Fetcher to get error code

Open cqh963852 opened this issue 1 year ago • 0 comments

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.

cqh963852 avatar Dec 23 '24 02:12 cqh963852