Skip to content

Cannot use Zod .transform #416

Closed
Closed
@alii

Description

@alii

Describe the bug
Unable to use .transform with the zod resolver

To Reproduce
Use an input and see an error
image

Codesandbox link (Required)
https://codesandbox.io/s/react-hook-form-zod-resolver-example-forked-khj93c?file=/src/App.tsx

Expected behavior
The transform happens as expected, and errors thrown during transformation are treated as form errors

Desktop (please complete the following information):

  • OS: MacOS 13 Ventura
  • Browser: Chrome 102.0.5005.61 (Official Build) (arm64)

Additional context
Replaces #415 (Error carried forward)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions