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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.