use-debounce
Advanced tools
Comparing version 8.0.0-beta to 8.0.0
{ | ||
"name": "use-debounce", | ||
"version": "8.0.0-beta", | ||
"version": "8.0.0", | ||
"description": "Debounce hook for react", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
@@ -36,9 +36,22 @@ <div align="center"> | ||
## Demos | ||
## Copy paste guidance: | ||
The simplest way to start playing around with use-debounce is with this CodeSandbox snippet: | ||
https://codesandbox.io/s/kx75xzyrq7 | ||
### use-debounce | ||
More complex example with searching for matching countries using debounced input: https://codesandbox.io/s/rr40wnropq (thanks to https://twitter.com/ZephDavies) | ||
Simple usage: https://codesandbox.io/s/kx75xzyrq7 | ||
Debounce HTTP request: https://codesandbox.io/s/rr40wnropq | ||
Debounce HTTP request with `leading` param: https://codesandbox.io/s/cache-example-with-areas-and-leading-param-119r3i | ||
### use-debounce callback | ||
Simple usage: https://codesandbox.io/s/x0jvqrwyq | ||
Combining with native event listeners: https://codesandbox.io/s/32yqlyo815 | ||
Cancelling, maxWait and memoization: https://codesandbox.io/s/4wvmp1xlw4 | ||
HTTP requests: https://codesandbox.io/s/use-debounce-callback-http-y1h3m6 | ||
## Changelog | ||
@@ -45,0 +58,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
100699
2
356
0