Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined message list for array validations #110

Open
JRebella opened this issue Jun 21, 2024 · 0 comments
Open

Undefined message list for array validations #110

JRebella opened this issue Jun 21, 2024 · 0 comments

Comments

@JRebella
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant