juliencrn / usehooks-ts

React hook library, ready to use, written in Typescript.
https://usehooks-ts.com
MIT License
6.52k stars 421 forks source link

Feature: add useThrottle hook #629

Open jiwooproity opened 3 months ago

jiwooproity commented 3 months ago

Adds a new hook called useThrottle that executed after a certain period of time based on the last function among the functions that are executed quickly.

Todo

changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: 3dd41002e1839d00f931d376946cabce48a020e9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

jiwooproity commented 1 month ago

@juliencrn Hello. I think this library is very nice. so I implemented throttle hook for contribute. If you think you need to add this hook, Can you review this hook?