radash icon indicating copy to clipboard operation
radash copied to clipboard

Debounce flush does not cancel the delayed invocation

Open christhofer opened this issue 2 years ago • 0 comments

debounce.flush() triggers the function but does not cancel the debounce call. So the function run twice.

Meanwhile Lodash stop the debounce call on flush, so the function only run once.

Reproduction Radash vs Lodash Debounce

image

christhofer avatar Feb 15 '23 08:02 christhofer