We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea273a6 commit c74eccbCopy full SHA for c74eccb
packages/form-core/src/FieldApi.ts
@@ -588,7 +588,7 @@ export type FieldMetaBase<
588
TFormOnBlurAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
589
TFormOnSubmit extends undefined | FormValidateOrFn<TParentData>,
590
TFormOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TParentData>,
591
- TFieldMetaExtension = {},
+ TFieldMetaExtension extends object = {},
592
> = {
593
/**
594
* A flag indicating whether the field has been touched.
@@ -1195,6 +1195,11 @@ export class FieldApi<
1195
fieldApi: this,
1196
})
1197
1198
+ this.setMeta((prev) => ({
1199
+ ...prev,
1200
+ ...this.options.meta?.(this.form.state),
1201
+ }))
1202
+
1203
return cleanup
1204
}
1205
0 commit comments