issue: validate() accepts returning a string[] array but error messages cannot be accessed #9581
Closed
1 task done
Labels
TS
Typescript related issues
Version Number
7.40.0
Codesandbox/Expo snack
https://codesandbox.io/s/broken-snow-9f00jc?file=/src/App.tsx:835-855
Steps to reproduce
Return a string[] from a
validate()
function:validate: () => ["error1", "error2"]
Expected behaviour
I expect both errors to be accessible in the errors object, but the error[fieldName].message is an empty string.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: