Showing 1-20 of 152 packages
React useThrottle hook
Convenient React useDebounce and useThrottle hooks for a clean code.
The `useThrottle` hook in React is designed to limit the rate at which a function can be executed, making it ideal for handling events that fire rapidly, such as scrolling, resizing, or continuous keypresses.
A React hook for throttling setState and other callbacks
Collection of useful React hooks
A collection of modern, server-safe React hooks – from the ui.dev team
Throttle hook for react
useThrottle is a custom React hook that limits how often a function can be called by ensuring it's invoked at most once within a specified delay period.
React hooks for updating components when the size of the `window` changes.
``` Includes - useDebounce - useThrottle - useCounter - useEvent - useSafeLayout ```
A React hook for updating components when the scroll position of the window on the y-axis changes
The throttled value / function hook for react
A React hook for tracking the position, hover, and down state of the mouse as it interacts with an element with interop between touch and mouse devices.
> homepage: https://www.npmjs.com/package/usethrottle-hook; ```bash npm i usethrottle-hook ``` ## Usage example ```js const throttleLoadMore = useThrottle(() => props.loadMore(dataLength), 500); ... function handleScroll(e: React.UIEvent<HTMLElement>) {
A lightweight React micro-utility.
React hooks for setTimeout, setInterval, requestAnimationFrame, requestIdleCallback
React hook for to throttle functions
A comprehensive collection of performance optimization hooks for React Native - useDebounce, useThrottle, and more
Analysis bundle cost for each export of an ESM package
A React hook for throttling values