-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
other
Version
5.x
Current Behavior
Based on the docs, I am calling validation during the form render. Instead of passing in a ref object, I pass in a function which calls the validate function.
When the form is rendered, the error messages are not displayed in the UI.
I added a bunch of logging. When the form is rendered, the validation function is called. The errors
object in the form state has the expected errors. However, errorSchema
and schemaValidationErrorSchema
have a bunch of undefined
.
errorSchema:
arguments: undefined
schema: undefined
Expected Behavior
I would expect the validation error messages to be shown on the UI.
Steps To Reproduce
No response
Environment
Anything else?
Is there a callback that's called after the form initialization is done?