Skip to content

Commit 18e3d75

Browse files
committed
docs: form debounced listener docs update
1 parent 4252f15 commit 18e3d75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/framework/react/guides/listeners.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ We enable an easy method for debouncing your listeners by adding a `onChangeDebo
9292

9393
### Form listeners
9494

95-
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.
95+
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.
9696

9797
`onMount` and `onSubmit` listeners have to following props:
9898

@@ -120,6 +120,7 @@ const form = useForm({
120120
// fieldApi represents the field that triggered the event.
121121
console.log(fieldApi.name, fieldApi.state.value)
122122
},
123+
onChangeDebounceMs: 500,
123124
},
124125
})
125126
```

0 commit comments

Comments
 (0)