{"repo":"xnimorz/use-debounce","free":true,"listed":false,"github":"https://github.com/xnimorz/use-debounce","clone":"git clone https://github.com/xnimorz/use-debounce.git","description":"A debounce hook for react","language":"TypeScript","stars":3384,"topics":["react-hooks","react-hook","debounce","react","usedebounce","react-use"],"license":"MIT","category":"ui-components","readme_excerpt":"useDebounce, useDebouncedCallback & useThrottledCallback React libraries for debouncing without tears! - Small size prev === next [useDebounce ONLY] Comparator function which shows if timeout should be started useThrottledCallback You are able to use throttled callback with this library also (starting 5.2.0 version). For this purpose use: or Several examples: 1. Avoid excessively updating the position while scrolling. 2. Invoke renewToken when the click event is fired, but not more than once every 5 minutes. All the params for useThrottledCallback are the same as for useDebouncedCallback except maxWait option. As it's not needed for throttle callbacks. Special thanks: @tryggvigy — for managing lots of new features of the library like trailing and leading params, throttle callback, etc; @omgovich — for reducing bundle size.","default_branch":null,"files":null,"tree":[],"storefront":"/r/xnimorz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xnimorz/use-debounce/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}