@ehsaneha/react-throttle
Version:
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.
11 lines (9 loc) • 243 B
text/typescript
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.