@react-hook/throttle
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "@react-hook/throttle", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/throttle#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/react-hook", |
@@ -26,3 +26,3 @@ <hr> | ||
A React hook for throttling setState and other callbacks. | ||
A React hook for performantly throttling `setState` and other callbacks. | ||
@@ -50,2 +50,6 @@ ## Quick Start | ||
A hook that acts just like `React.useState`, but with a `setState` function | ||
that is only invoked at most X frames per second. A trailing call is guaranteed, | ||
but you may opt-in to calling on the leading edge, as well. | ||
```ts | ||
@@ -78,2 +82,5 @@ export const useThrottle = <State>( | ||
A hook that invokes its callback at most X frames per second. A trailing call is guaranteed, | ||
but you may opt-in to calling on the leading edge, as well. | ||
```ts | ||
@@ -80,0 +87,0 @@ export const useThrottleCallback = <Callback extends (...args: any[]) => void>( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12722
108