Skip to content
New issue

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

Recall debounceCallback with latest arguments #186

Open
ManuLpz4 opened this issue Oct 4, 2024 · 1 comment
Open

Recall debounceCallback with latest arguments #186

ManuLpz4 opened this issue Oct 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ManuLpz4
Copy link

ManuLpz4 commented Oct 4, 2024

Hey, guys! How is it going? I think that it would be great to have a new method to restart the debounce timer like restart() or recall(). Is the same as calling again the function with the last arguments, I think a useRef() hook is more than enough to achieve it.

What do you think?

@ManuLpz4 ManuLpz4 changed the title Reset debouncer with last arguments Recall debounceCallback with latest arguments Oct 4, 2024
@xnimorz
Copy link
Owner

xnimorz commented Oct 5, 2024

Hello @ManuLpz4

Could you elaborate on practical use-cases for that, please? I am trying to understand why it might be needed

@xnimorz xnimorz added the enhancement New feature or request label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants