Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

revalidateLogic.md

30 lines871 Bytes

1---
2id: revalidateLogic
3title: revalidateLogic
4---
5​
6# Function: revalidateLogic()
7​
8```ts
9function revalidateLogic(__namedParameters): ValidationLogicFn;
10```
11​
12Defined in: [packages/form-core/src/ValidationLogic.ts:68](https://github.com/TanStack/form/blob/main/packages/form-core/src/ValidationLogic.ts#L68)
13​
14This forces a form's validation logic to be ran as if it were a React Hook Form validation logic.
15​
16This means that it will only run the `onDynamic` validator, and it will not run any other validators and changes the validation
17type based on the state of the form itself.
18​
19When the form is not yet submitted, it will not run the validation logic.
20When the form is submitted, it will run the validation logic on `change`
21​
22## Parameters
23​
24### \_\_namedParameters
25​
26`RevalidateLogicProps` = `{}`
27​
28## Returns
29​
30[`ValidationLogicFn`](../type-aliases/ValidationLogicFn.md)