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 1.0.4 to 1.0.5

2

package.json
{
"name": "@react-hook/throttle",
"version": "1.0.4",
"version": "1.0.5",
"author": "Jared Lunde <jared@BeStellar.co> (https://jaredLunde.com)",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -37,3 +37,3 @@ [![bundlephobia](https://img.shields.io/bundlephobia/minzip/@react-hook/throttle?style=plastic)](https://bundlephobia.com/result?p=@react-hook/throttle)

### `useThrottle(initialValue: any, fps: number, leading: bool)`
### `useThrottle(initialValue: any, fps?: number, leading?: bool)`
- `initialValue` `<any>`

@@ -57,3 +57,3 @@ - Sets an initial state

### `useThrottleCallback(fn: function, fps: number, leading: bool)`
### `useThrottleCallback(fn: function, fps?: number, leading?: bool)`
- `fn` `<any>`

@@ -60,0 +60,0 @@ - This is the callback you want to throttle

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