Context-based useField — can be used inside a FormProvider. For best IntelliSense, prefer form.useField() which infers field types from the schema. When using this context-based version, specify the schema type explicitly:
form.useField()
const name = useField<typeof MySchema>((t) => t.name); Copy
const name = useField<typeof MySchema>((t) => t.name);
Context-based useField — can be used inside a FormProvider. For best IntelliSense, prefer
form.useField()which infers field types from the schema. When using this context-based version, specify the schema type explicitly: