use-debounce
use-debounce copied to clipboard
Recall debounceCallback with latest arguments
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?