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
useDebouncedCallback() has a slightly wrong type #103
Comments
Thank you, @VanTanev for spotting this! |
Published in v.6.0.1 Thanks for reporting! |
This was referenced May 21, 2021
This was referenced Jun 16, 2021
This was referenced Jul 1, 2021
23 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should instead be:
The reason is that unless we're invoking on leading edge, the
result
ref will not be set until the function has been debounced at least once.Reproduction: https://codesandbox.io/s/use-debounced-callback-return-type-57jme
The text was updated successfully, but these errors were encountered: