Skip to content

Question: onError / onValidationError hook for the validation failures? #42

@kwonoj

Description

@kwonoj

Is there a lifecycle hook to get notified if schema validation fails?

I thought onError hook would notify if validation fails (https://better-fetch.vercel.app/docs/hooks#on-success-and-on-error), however it doesn't seem to be a case. Curious

  • if it makes sense if onError notifies validation error
  • or if not, there's a separate hook for the validation error

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