error-message
error-message copied to clipboard
Undefined message list for array validations
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