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

use-debounce

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-debounce - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

2

esm/useDebounce.js

@@ -23,3 +23,3 @@ import { useCallback, useRef, useState } from 'react';

}
return [state, { cancel: debounced.cancel, isPending: debounced.isPending, flush: debounced.flush }];
return [state, debounced];
}

@@ -25,4 +25,4 @@ "use strict";

}
return [state, { cancel: debounced.cancel, isPending: debounced.isPending, flush: debounced.flush }];
return [state, debounced];
}
exports.default = useDebounce;
{
"name": "use-debounce",
"version": "7.0.0",
"version": "7.0.1",
"description": "Debounce hook for react",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -304,3 +304,3 @@ <div align="center">

| trailing | true | This param executes the function after timeout. | https://github.com/xnimorz/use-debounce#leading-calls |
| equalityFn | (prev, next) => prev === next | Comparator function which shows if timeout should be started | |
| equalityFn | (prev, next) => prev === next | [useDebounce ONLY] Comparator function which shows if timeout should be started | |

@@ -307,0 +307,0 @@ ## useThrottledCallback

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