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 8.0.4 to 9.0.0

dist/index.cjs

13

package.json
{
"name": "use-debounce",
"version": "8.0.4",
"version": "9.0.0",
"description": "Debounce hook for react",
"type": "module",
"source": "src/index.ts",

@@ -85,3 +86,3 @@ "main": "dist/index.js",

"react-dom": "16.8.3",
"size-limit": "^4.6.2",
"size-limit": "^8.1.0",
"ts-jest": "^26.3.0",

@@ -95,3 +96,3 @@ "typescript": "^3.5.1"

{
"path": "dist/index.js",
"path": "dist/index.cjs",
"limit": "1 KB"

@@ -112,3 +113,3 @@ },

{
"path": "dist/index.js",
"path": "dist/index.cjs",
"import": "{ useDebounce }",

@@ -118,3 +119,3 @@ "limit": "1 KB"

{
"path": "dist/index.js",
"path": "dist/index.cjs",
"import": "{ useDebouncedCallback }",

@@ -124,3 +125,3 @@ "limit": "1 KB"

{
"path": "dist/index.js",
"path": "dist/index.cjs",
"import": "{ useThrottledCallback }",

@@ -127,0 +128,0 @@ "limit": "1 KB"

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

```javascript
import React, { useState, useCallback } from 'react';
import React, { useState } from 'react';
import ReactDOM from 'react-dom';

@@ -236,3 +236,3 @@ import { useDebouncedCallback } from 'use-debounce';

```javascript
import React, { useState, useCallback } from 'react';
import React, { useState } from 'react';
import { useDebouncedCallback } from 'use-debounce';

@@ -266,2 +266,4 @@

```javascript
import React, { useCallback } from 'react';
function Component({ text }) {

@@ -268,0 +270,0 @@ const debounced = useDebouncedCallback(useCallback(() => {}, []), 500);

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