You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* When using `@tanstack/react-form`, the core form API is extended at type level with additional methods for React-specific functionality:
18
+
* A React component to render form fields. With this, you can render and manage individual form fields.
13
19
*/
14
-
// eslint-disable-next-line no-shadow
15
-
interfaceFormApi<TFormData,TFormValidator>{
16
-
/**
17
-
* A React component to render form fields. With this, you can render and manage individual form fields.
18
-
*/
19
-
Field: FieldComponent<TFormData,TFormValidator>
20
-
/**
21
-
* A custom React hook that provides functionalities related to individual form fields. It gives you access to field values, errors, and allows you to set or update field values.
22
-
*/
23
-
useField: UseField<TFormData,TFormValidator>
24
-
/**
25
-
* A `useStore` hook that connects to the internal store of the form. It can be used to access the form's current state or any other related state information. You can optionally pass in a selector function to cherry-pick specific parts of the state
* A custom React hook that provides functionalities related to individual form fields. It gives you access to field values, errors, and allows you to set or update field values.
23
+
*/
24
+
useField: UseField<TFormData,TFormValidator>
25
+
/**
26
+
* A `useStore` hook that connects to the internal store of the form. It can be used to access the form's current state or any other related state information. You can optionally pass in a selector function to cherry-pick specific parts of the state
* A `Subscribe` function that allows you to listen and react to changes in the form's state. It's especially useful when you need to execute side effects or render specific components in response to state updates.
* A `Subscribe` function that allows you to listen and react to changes in the form's state. It's especially useful when you need to execute side effects or render specific components in response to state updates.
* A custom React Hook that returns an instance of the `FormApi` class.
52
+
* A custom React Hook that returns an extended instance of the `FormApi` class.
53
53
*
54
54
* This API encapsulates all the necessary functionalities related to the form. It allows you to manage form state, handle submissions, and interact with form fields
0 commit comments