We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I call debounce like this:
let i = 1; const logValue = debounce(() => console.log(i++), 500, true); logValue(); logValue(); logValue();
it prints 1 and 2. Is there any way to make it print 1 and 3?
1
2
3
I'd like to use it for auto-saving editor updates, so the last call is important.
I couldn't see a way of accomplishing it from the docs. If it's not currently possible, is it something you would consider implementing?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I call debounce like this:
it prints
1
and2
. Is there any way to make it print1
and3
?I'd like to use it for auto-saving editor updates, so the last call is important.
I couldn't see a way of accomplishing it from the docs. If it's not currently possible, is it something you would consider implementing?
The text was updated successfully, but these errors were encountered: