Skip to content

Commit 7108924

Browse files
committed
fix: pr comments
1 parent 59c6210 commit 7108924

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/framework/react/guides/listeners.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Imagine the following user flow:
1313

1414
In this example, when the user changes the country, the selected province needs to be reset as it's no longer valid. With the listener API, we can subscribe to the `onChange` event and dispatch a reset to the "province" field when the listener is fired.
1515

16-
Events that can be "listened" to are:
16+
Field level events that can be "listened" to are:
1717

1818
- `onChange`
1919
- `onBlur`
@@ -94,9 +94,9 @@ We enable an easy method for debouncing your listeners by adding a `onChangeDebo
9494

9595
### Form listeners
9696

97-
At a higher level, listeners are also available at the form level, allowing you access to the `onMount` and `onSubmit` events, and having `onChange` and `onBlur` propagated to all the form's children. Form-level listeners can also be debounced in the same way as previously discussed.
97+
At a higher level, listeners are also available at the form level, allowing you access to the `onMount`, `onSubmit`, and `onReset` events, and having `onChange` and `onBlur` propagated to all the form's children. Form-level listeners can also be debounced in the same way as previously discussed.
9898

99-
`onMount` and `onSubmit` listeners have the following parameters:
99+
`onMount`, `onSubmit`, `onReset` listeners have the following parameters:
100100

101101
- `formApi`
102102

packages/form-core/src/FieldApi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ import {
88
determineFieldLevelErrorSourceAndValue,
99
evaluate,
1010
getAsyncValidatorArray,
11-
getBy,
1211
getSyncValidatorArray,
1312
mergeOpts,
14-
setBy,
1513
} from './utils'
1614
import { defaultValidationLogic } from './ValidationLogic'
1715
import type { ReadonlyStore } from '@tanstack/store'

0 commit comments

Comments
 (0)