error-message icon indicating copy to clipboard operation
error-message copied to clipboard

Undefined message list for array validations

Open JRebella opened this issue 8 months ago • 0 comments

Example using yup for validation: https://codesandbox.io/p/sandbox/react-hook-form-v7-validationschema-forked-l3l865?file=%2Fsrc%2Findex.js%3A60%2C11

Inside the render prop of the component, logging both parameters { message, messages } shows they're both undefined. Accessing the errors object directly from useFormState shows there's an array of errors for the field

JRebella avatar Jun 21 '24 18:06 JRebella