-
-
Notifications
You must be signed in to change notification settings - Fork 282
Open
Labels
component: fieldChanges related to the field component.Changes related to the field component.support: questionCommunity support but can be turned into an improvement.Community support but can be turned into an improvement.
Description
I need help understanding how to trigger initial validation for a field created with Field.Root.
In my form, the field is marked as required, but Field.Root does not validate on mount.
Because of this, the field does not show its error state until the user interacts with it.
What I need help with
- How can I trigger validation on mount for a
Field.Rootfield? - Is there an API or recommended pattern to manually call validation (like
validate()ortriggerValidation())? - What is the correct approach to show initial error UI for required fields?
Context
- Validation must run immediately when the component is rendered.
- Error state should be visible on initial load without user interaction.
Metadata
Metadata
Assignees
Labels
component: fieldChanges related to the field component.Changes related to the field component.support: questionCommunity support but can be turned into an improvement.Community support but can be turned into an improvement.