From 82a1f0f2f9a3353ced70c8fdae9ed66a10a4d3e2 Mon Sep 17 00:00:00 2001 From: dojhoanrd-jw Date: Fri, 15 May 2026 12:21:31 -0700 Subject: [PATCH] docs(vue): add Built-in Debouncing and Form listeners sections to listeners guide --- docs/framework/vue/guides/listeners.md | 61 ++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/docs/framework/vue/guides/listeners.md b/docs/framework/vue/guides/listeners.md index 946af1e7f..73ba5b651 100644 --- a/docs/framework/vue/guides/listeners.md +++ b/docs/framework/vue/guides/listeners.md @@ -64,3 +64,64 @@ const form = useForm({ ``` + +### Built-in Debouncing + +If you are making an API request inside a listener, you may want to debounce the calls as it can lead to performance issues. +We enable an easy method for debouncing your listeners by adding a `onChangeDebounceMs` or `onBlurDebounceMs`. + +```vue + + + +``` + +### Form listeners + +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. + +`onMount` and `onSubmit` listeners have the following parameters: + +- `formApi` + +`onChange` and `onBlur` listeners have access to: + +- `fieldApi` +- `formApi` + +```vue + +```