Open christhofer opened 1 year ago
debounce.flush() triggers the function but does not cancel the debounce call. So the function run twice.
debounce.flush()
Meanwhile Lodash stop the debounce call on flush, so the function only run once.
Reproduction Radash vs Lodash Debounce
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