Skip to content

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

Open
@cqh963852

Description

@cqh963852

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions