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

useDebounce remove deps from function arguments #623

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

wardoost
Copy link
Contributor

Removed hook dependencies from function arguments to align hook API with standard React hooks. The dependency array was also passed as single array and spread the items in the array as arguments which probably resulted in no developers using arguments of the timeout function.

I have also rename args to deps for consistency.

Closes #618

@wardoost wardoost merged commit 23d6a5a into master Sep 26, 2019
streamich pushed a commit that referenced this pull request Sep 26, 2019
## [12.2.2](v12.2.1...v12.2.2) (2019-09-26)

### Bug Fixes

* useDebounce remove deps from function arguments ([#623](#623)) ([23d6a5a](23d6a5a))
@streamich
Copy link
Owner

🎉 This PR is included in version 12.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@wardoost wardoost deleted the useDebounce-deps-fix branch September 26, 2019 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Given function for useDebounce should expect arguments (as for the type signature)
2 participants