Handle constraints automatically if unspecified #1113
|
I've stumbled across a few cases where I forgot to provide When a field is already required in the schema, but Conform needs additional configuration to make the form element also receive a Why does this separation exist? // 1.14.0
useForm(schema, {
constraint: getZodConstraint(schema), // redundant?
// ...
})Would it not be useful to deduce the constraint from the schema if unspecified? |
Answered by
edmundhung
Dec 2, 2025
Replies: 1 comment 1 reply
|
It was planned as part of the changes to a schema first signature in #1069. I just wanna explore a bit more on the feasibility of a hook factory before adding more options to the Provider. |
1 reply
Answer selected by
transparent-citizen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was planned as part of the changes to a schema first signature in #1069.
I just wanna explore a bit more on the feasibility of a hook factory before adding more options to the Provider.