You-Dont-Need-Lodash-Underscore icon indicating copy to clipboard operation
You-Dont-Need-Lodash-Underscore copied to clipboard

in _.debounce , set immediate true, the debounced function cannot work

Open blueMountain007 opened this issue 4 years ago • 5 comments

function foo() {console.log("1")} foo2 = debounce(foo, 3000, true); foo2()

no log consoled

blueMountain007 avatar Apr 24 '20 03:04 blueMountain007

This is indeed a bug.

noscripter avatar Aug 26 '20 09:08 noscripter

Pull request #243 seems to have a fix for this issue.

FilipeLarga avatar Dec 24 '20 20:12 FilipeLarga

As of March 30th 2022, PR https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/pull/243 has not been merged. If you plan on using the existing function, please look at the first commit in the PR and make the change shown there.

pcbailey avatar Mar 30 '22 19:03 pcbailey

Can someone create a standalone TS declaration of this function?

apappas1129 avatar Jun 08 '22 03:06 apappas1129

Fixed #362, no?

vassudanagunta avatar Dec 02 '23 08:12 vassudanagunta