You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I wanted to try out the new standard-schema resolver so I swapped it from the zodResolver that I current use. However, I noticed a bug regarding zod transforms where the transform runs but the handleSubmit data returned is not transformed but in its original shape.
Hi @skalidindi , thanks for reporting this issue. Some work has been done on the standard resolver, but it hasn't been released yet. Keep an eye on upcoming releases—I’ll make sure this gets addressed.
Hi @jorisre. Thank you for the response. I was not aware that this was not ready for consumption yet. Maybe it is worth updating the docs to make it clear that the standard resolver is not fully ready yet.
Hey @skalidindi , looking at your CSB - can't see any difference in the console.log between zodResolver and standardSchemaResolver. Mind sharing more details on the issue? Thanks!
Hey @jorisre actually I think this is fixed in the latest version. However if you want to reproduce, I updated the stackblitz to lock down the version of the library to 4.0.0. In that version using standard-schema I get {"pagerduty":{"label":"2323","value":"#52343"}} as the result but I am expecting {"pagerduty":"#52343"} which zodResolver gives back.
However, in 4.1.2 I am getting {"pagerduty":"#52343"} consistently using either resolver.
Describe the bug
I wanted to try out the new standard-schema resolver so I swapped it from the zodResolver that I current use. However, I noticed a bug regarding zod transforms where the transform runs but the handleSubmit data returned is not transformed but in its original shape.
To Reproduce
Codesandbox link (Required)
Include a codesandbox will help us to investigate the issue quicker.
https://stackblitz.com/edit/vitejs-vite-5onrdfps?file=src%2FApp.jsx
Expected behavior
I expect the same behavior as when I used zodResolver where the value is transformed on submit of the form.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: