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

Incorrect documented default for debounce trailing option #619

Open
bryfox opened this issue Jul 23, 2024 · 0 comments
Open

Incorrect documented default for debounce trailing option #619

bryfox opened this issue Jul 23, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@bryfox
Copy link

bryfox commented Jul 23, 2024

Describe the problem

The debounce options are documented with a default value of trailing: false:

https://usehooks-ts.com/react-hook/use-debounce-value#UseDebounceValueOptions
https://usehooks-ts.com/react-hook/use-debounce-callback#DebounceOptions

However, the hooks appear to defer to lodash defaults (with trailing:true): https://docs-lodash.com/v4/debounce/

Additional context

No response

@bryfox bryfox added the documentation Improvements or additions to documentation label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant