{"_id":"@bellawatt/use-debounce-effect","_rev":"11-a4774cc93e50909735ea0d571c00cf9c","name":"@bellawatt/use-debounce-effect","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@bellawatt/use-debounce-effect","version":"1.0.0","author":{"name":"@bellawatt"},"license":"MIT","_id":"@bellawatt/use-debounce-effect@1.0.0","maintainers":[{"name":"brandonshar","email":"brandon.shar@icloud.com"},{"name":"bknoles","email":"bknoles@gmail.com"}],"dist":{"shasum":"c60c3f188773943406ce8b180243c532f87b5cf5","tarball":"https://registry.npmjs.org/@bellawatt/use-debounce-effect/-/use-debounce-effect-1.0.0.tgz","fileCount":22,"integrity":"sha512-QDOO7xqYlGmThElGShUJvy2qcIr6p1Teog05fekY30Njqk33A+0hSs9GsYOHUMBfzfZy/FIdf6rsRIuPoTXIkw==","signatures":[{"sig":"MEYCIQCAwxrd15SqJsUJB/qdPmRL+XeRwbrEApEsU0Buk1dHlwIhAOy/21B/R9Q9NVFAS8dOSoE2YM//oQLRXlB/iep9CdEu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1322574,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7v1nCRA9TVsSAnZWagAA6AkQAKEw44Jp/Fx4wfV7cVEA\n+A5RjmWHrdDTD624jzlGc8RGsjmmXZLETBqpaoz51j+xve9wEJj8Muwha4rn\nOB2AhqaiyLGE/Eoue6sBe8ahEz0056iWq1ScdtdrWLl9ByYt7FmN8ktKZsyD\np3Y+83zQn5Gsfm2DVmsXc9uKPo89DFR0fnxneOEGkD8isV5Iye0tNwrO+r0P\n5jp1+Re028WLH3in5uLO6BP0LoEvzRRiiZWl+rxzadrIAvZMoL1ukJ/0IS1d\nsX5ru5ssNx0Fn1Hjo2L61W1vbbaHyKh7SDTJjsocs1Neg31Jg5zWJHHTyZwG\n9SSLERpfG/kMXWex+9AAkgOcfEKJTeXIFsgwW/l23KNz+S5XuvDB63B08XJr\nbQuuNhsIVX6UGd5VeWytPPJdOL54i8DJuRRuwGaag6DpdPVCgit41g5zfGuU\nyBAGBj2i0IHCNlR78s5wHCQ9Fr7ew5FFdH5ZYWuWzpNVL4+S3tDR29JPVgSg\nua1i3H5DSifsmBwOGWi77/Rgqr/1iq+w2woxT5Q313qpUnK50wpPErvaBR9l\nBJDOi2YML88PnS9MKIdqG8ORwi9P8ym6gtY9ZjxTd8RYv4zALjgm3BPmbnL0\nqsGmSwFozYeXP5AJ+dffFQaaomvU3a9ZfyVxsZDuf2m0HuF0VuQVCFVjUn6m\nvWrB\r\n=8y//\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"npm":">=5","node":">=8"},"gitHead":"93b34dead4fcbd2976e455ee30d498c683e61865","scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","build":"rollup -c","start":"rollup -c -w","deploy":"gh-pages -d example/build","prepare":"npm run build","predeploy":"cd example && npm install && npm run build","test:watch":"react-scripts test --env=jsdom"},"_npmUser":{"name":"brandonshar","email":"brandon.shar@icloud.com"},"repository":{"url":"@bellawatt/use-debounce-effect","type":"git"},"_npmVersion":"7.13.0","description":"useEffect hook that debounces the effect","directories":{},"jsnext:main":"dist/index.es.js","_nodeVersion":"16.2.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"5.16.0","rollup":"^1.1.2","gh-pages":"^2.0.1","cross-env":"^5.2.0","@babel/core":"^7.0.0","babel-eslint":"^10.0.1","react-scripts":"^3.4.0","@babel/preset-env":"^7.0.0","rollup-plugin-url":"^2.1.0","eslint-plugin-node":"^7.0.1","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.10.0","react-test-renderer":"^16.9.0","rollup-plugin-babel":"^4.3.2","eslint-plugin-import":"^2.13.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.1.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^4.0.0","@testing-library/react-hooks":"^3.2.1","eslint-config-standard-react":"^6.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","rollup-plugin-peer-deps-external":"^2.2.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-proposal-function-bind":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-do-expressions":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-proposal-pipeline-operator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-proposal-export-default-from":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.0.0","@babel/plugin-proposal-logical-assignment-operators":"^7.0.0"},"peerDependencies":{"react":"^16.9.0"},"_npmOperationalInternal":{"tmp":"tmp/use-debounce-effect_1.0.0_1626275174737_0.260582910862206","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@bellawatt/use-debounce-effect","version":"1.1.0","author":{"name":"@bellawatt"},"license":"MIT","_id":"@bellawatt/use-debounce-effect@1.1.0","maintainers":[{"name":"brandonshar","email":"brandon.shar@icloud.com"},{"name":"bknoles","email":"bknoles@gmail.com"}],"dist":{"shasum":"5f836f04c8476666b5a435d3b29f89c281d1772d","tarball":"https://registry.npmjs.org/@bellawatt/use-debounce-effect/-/use-debounce-effect-1.1.0.tgz","fileCount":22,"integrity":"sha512-+mkQmGIwfIomyN9CrdgflwJQOVs30j8l5vf/Dg7X3LJxyv7TPo3cG0+axVD6MZhoFg8dOaoAKkuTb7WvK6M2eg==","signatures":[{"sig":"MEUCICXh58kXhQzbjHTWbK6BAy9WnfJF0/E8k/uRhchOHghYAiEA/r7xer8YE0FFNw2TKSkGuiGoDxp6GF6rX8hLn9Mnlao=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1322585,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8KQfCRA9TVsSAnZWagAAFysP/Avr8pu+WbkhC7tFMt8k\n9BLFRumgOX8W3JKdyfmxj0Y3nfYlyq9t8qMxcONQTodaBtU93yqq8AXvn15z\nUNYY2DbOCGOAcMtDOS/DNY8Q5OoyT4iRPCFrEyH3QLmotiHwKaJCVQI52MB5\nq2rajQlSBJQ3fsxR3LFD/gRWBpWWOxkXeJgNggy9dBcLSySgCBhIJaRYBZQt\nEaRlkGA6b2FCf4vdzgkkvDnKKhEbkqywOY0eiLV+NYG7ItEX43D8gfg0SKnE\ndwGSDzkemHh+ngd9pd5qCj5yN6VWPm55YT1YO/aXaAm6PgV7iqnHDbzicggT\ntebxcZnL+n/ZCSmr8Npl3AbAIKstscPDyz/bULxr3H/Z73ebG7RcSbIHI4Yw\nSFoOR2SCRFPQ+6t6HBAv6sWRNU/WXZhMRhKHsOqCsa9Jll7aShPuSN8UCCea\nC4pH9h0jxCfCKWvHbkp66wIDapMhfqlJytMsT82SmastpW0F9GiPlipwgl2y\nyv3Rlt/WVHZIsWjzV61UIGX5Ww3GkzA3PICvoPGkQ6PyfwGIOw3R7Gwzq3Sf\nBASTIbcpJVmcQGcgZCccwHr3klJiGCIFyddO+oLcTfxJJIUPn1CdjSW7VXQR\nikICt0+3m8Gjb1W80XRy7Xzm3bNEKzeX47qJ57vQ/1ljwQaofpbqqJmnDEtx\nLIvA\r\n=Bar1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"npm":">=5","node":">=8"},"gitHead":"8fcb1de7f1d6018de4152e4a465537b67774c579","scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","build":"rollup -c","start":"rollup -c -w","deploy":"gh-pages -d example/build","prepare":"npm run build","predeploy":"cd example && npm install && npm run build","test:watch":"react-scripts test --env=jsdom"},"_npmUser":{"name":"brandonshar","email":"brandon.shar@icloud.com"},"repository":{"url":"@bellawatt/use-debounce-effect","type":"git"},"_npmVersion":"7.13.0","description":"useEffect hook that debounces the effect","directories":{},"jsnext:main":"dist/index.es.js","_nodeVersion":"16.2.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"5.16.0","rollup":"^1.1.2","gh-pages":"^2.0.1","cross-env":"^5.2.0","@babel/core":"^7.0.0","babel-eslint":"^10.0.1","react-scripts":"^3.4.0","@babel/preset-env":"^7.0.0","rollup-plugin-url":"^2.1.0","eslint-plugin-node":"^7.0.1","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.10.0","react-test-renderer":"^16.9.0","rollup-plugin-babel":"^4.3.2","eslint-plugin-import":"^2.13.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.1.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^4.0.0","@testing-library/react-hooks":"^3.2.1","eslint-config-standard-react":"^6.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","rollup-plugin-peer-deps-external":"^2.2.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-proposal-function-bind":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-do-expressions":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-proposal-pipeline-operator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-proposal-export-default-from":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.0.0","@babel/plugin-proposal-logical-assignment-operators":"^7.0.0"},"peerDependencies":{"react":"^16.9.0 || ^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-debounce-effect_1.1.0_1626383390818_0.055451933203357395","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@bellawatt/use-debounce-effect","version":"1.2.0","author":{"name":"@bellawatt"},"license":"MIT","_id":"@bellawatt/use-debounce-effect@1.2.0","maintainers":[{"name":"brandonshar","email":"brandon.shar@icloud.com"},{"name":"bknoles","email":"bknoles@gmail.com"}],"dist":{"shasum":"258ef6262512f56cd84bf04c2df6729bccf18cb2","tarball":"https://registry.npmjs.org/@bellawatt/use-debounce-effect/-/use-debounce-effect-1.2.0.tgz","fileCount":22,"integrity":"sha512-XgmxU4KfG3xUHiyPohq4N45N6rM2EQPkO4t1YltMQo95T1KaSR79QSZY6bi3F4n8koJqsRZJoWjvNxEdqenzOg==","signatures":[{"sig":"MEUCIQCAVLXrJmZmgYggoB57v/Fiw8xYs25+XOrMQ7kkAmbuxAIgLAAxWeB2Gyj2GA8EbZNqJeO2O2hQ/3RNclF5ZMjY6+s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1322596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRcF8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqExBAAoG3ZDWsdqZlBrFY0YZ3oN8Q1p9ZZ6A+5ImjybJsC3ymwejXe\r\nTA70NcOziYb0gJ+fcXVH6EClPddR+Lxg4K1KZv3na/yCXMMhVV9fuJjzm03I\r\nf1Gd3qgjDcxQPB1h7bffvDydUCGKgBElgAbIVqnNiH5K4Oc9yY2D5dTIn1U7\r\n69pViC8Rjl8R5aifkIkwF3nbZngdCw+UAW51zk5oRXpQaGK6pr5oU1o1KHRd\r\nM7n/pdGU9KliGOmCiWhK7GAuN23UuNqR0mFLmqT/RgI1czJDKLpdl+DYdKY0\r\ncg+bDaxF9eyVeFdhSbWV53wrfxBCn9Sd5g3lW+tRKiENmecNCeqwfZGe99vK\r\n1B8G6QLcisYzaRmfpnfgzO9Ka46WEC93A84n4xTkNfsSrw9GF59zgsobUXDR\r\n+qxVTdw0OypKQTJ8fjvQg0GRBssJNriASB/Jvo7W3H3CXn7jisabz/LzGq6i\r\nNIWXW5NrMkpzXch7u9SQoPCUKTWmX7U8yQpMuf02z12w2ywqsBzIiYzdun44\r\ne8+yXW+hdfNuMxAE7+i3+umS9W6lDP6zmVxaEreToptTLson/W4OXZ8CfD/F\r\nutzxVNvDb2SFMjiLcWrLK2PtnpmlYcmiqCc8O6BTDt0ibnsxVOUruiY+Ysrw\r\npOq37OIzLWUqACCJK81oSudMXD+7IAfTJGE=\r\n=AKwW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"npm":">=5","node":">=8"},"gitHead":"8fcb1de7f1d6018de4152e4a465537b67774c579","scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","build":"rollup -c","start":"rollup -c -w","deploy":"gh-pages -d example/build","prepare":"npm run build","predeploy":"cd example && npm install && npm run build","test:watch":"react-scripts test --env=jsdom"},"_npmUser":{"name":"brandonshar","email":"brandon.shar@icloud.com"},"repository":{"url":"@bellawatt/use-debounce-effect","type":"git"},"_npmVersion":"8.17.0","description":"useEffect hook that debounces the effect","directories":{},"jsnext:main":"dist/index.es.js","_nodeVersion":"17.4.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"5.16.0","rollup":"^1.1.2","gh-pages":"^2.0.1","cross-env":"^5.2.0","@babel/core":"^7.0.0","babel-eslint":"^10.0.1","react-scripts":"^3.4.0","@babel/preset-env":"^7.0.0","rollup-plugin-url":"^2.1.0","eslint-plugin-node":"^7.0.1","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.10.0","react-test-renderer":"^16.9.0","rollup-plugin-babel":"^4.3.2","eslint-plugin-import":"^2.13.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.1.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-node-resolve":"^4.0.0","@testing-library/react-hooks":"^3.2.1","eslint-config-standard-react":"^6.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","rollup-plugin-peer-deps-external":"^2.2.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-proposal-function-bind":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-do-expressions":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-proposal-pipeline-operator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-proposal-export-default-from":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.0.0","@babel/plugin-proposal-logical-assignment-operators":"^7.0.0"},"peerDependencies":{"react":"^16.9.0 || ^17.0.0 || ^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-debounce-effect_1.2.0_1665515899838_0.9004327146218805","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-07-14T15:06:14.500Z","modified":"2026-03-06T20:37:30.999Z","1.0.0":"2021-07-14T15:06:14.937Z","1.1.0":"2021-07-15T21:09:51.045Z","1.2.0":"2022-10-11T19:18:20.097Z"},"author":{"name":"@bellawatt"},"license":"MIT","repository":{"url":"@bellawatt/use-debounce-effect","type":"git"},"description":"useEffect hook that debounces the effect","maintainers":[{"email":"matt@bellawatt.com","name":"matt.bauer.bellawatt"},{"email":"eugene@bellawatt.com","name":"euggra"},{"email":"dave@bellawatt.com","name":"dbellawatt"}],"readme":"# use-debounce-effect\n\n> useEffect hook that debounces the effect\n\n[![NPM](https://img.shields.io/npm/v/use-debounce-effect.svg)](https://www.npmjs.com/package/use-debounce-effect) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save use-debounce-effect\n```\n\n## Usage\n\n```jsx\nimport React, { useState } from 'react'\nimport axios from 'axios';\nimport { useDebounceEffect } from '@bellawatt/react-hooks'\n\nconst DebounceEffectExample = () => {\n  const [value, setValue] = useState('');\n\n  useDebounceEffect(() => {\n    someSlowFunction();\n  }, 1000, [value]));\n\n  return (\n    <div>\n      <input value={value} onChange={e => setValue(e.currentTarget.value)} />\n    </div>\n  )\n}\n```\n\n## License\n\nMIT © [bellawatt](https://github.com/bellawatt)\n\n---\n\nThis hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).\n","readmeFilename":"README.md"}