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
I am using react hook form with Zod schema validation. For one field I am using the superRefine method of Zod to further control the validation flow and return custom error message via Zod's refinementContext. However the type of the error return by Zod seems to be different to react hook form's formState.error
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I am using react hook form with Zod schema validation. For one field I am using the superRefine method of Zod to further control the validation flow and return custom error message via Zod's refinementContext. However the type of the error return by Zod seems to be different to react hook form's formState.error
Any idea whats the right way to approach this?
thanks
Beta Was this translation helpful? Give feedback.
All reactions