Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-hook/throttle

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hook/throttle - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

package.json
{
"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>(

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc