add async variant for useThrottleFn
and useDebounceFn
#1697
Labels
enhancement
New feature or request
useThrottleFn
and useDebounceFn
#1697
Clear and concise description of the problem
When using
useThrottleFn
oruseDebounceFn
with anasync
callback, if the callback throws an error, the error is not handled by the global error handler nor errorCaptured component instance (if configured).Suggested solution
Add an
async
variant and check for the global error handler or errorCaptured.Beware, check the
Error Propagation Rules
on errorCaptured.Vue 2 and Vue 3 seems to be in sync.
Alternative
capture the error inside the callback, but them, we need to handle the error on each usage instead globally, a lot of work.
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: