Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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