Skip to content

Undefined message list for array validations #110

@JRebella

Description

@JRebella

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions