trailing If true, call fn again after the time is up.
leading If true, call fn on the leading edge of the ms timeout
The implementation only has an options object, with maxWait as the single parameter. I was actually hoping to use leading, as the current behavior of trailing doesn't feel as responsive.
Loving the library btw, thanks!
Are you willing to create pull request with the fix?
Link to the page where something isn't quite right
https://www.svelteui.org/composables/use-debounce
Exact quote of what is wrong
The implementation only has an
options
object, withmaxWait
as the single parameter. I was actually hoping to useleading
, as the current behavior of trailing doesn't feel as responsive.Loving the library btw, thanks!
Are you willing to create pull request with the fix?
No