Version: @tanstack/react-pacer@latest Requires: React 16.8+, TypeScript recommended
Each utility (Debouncer, Throttler, RateLimiter, Queuer, Batcher) provides 4 React hooks:
| use[Utility] | Instance | Full control, custom state subscriptions | | use[Utility]Callback | Wrapped function | Simple event handler wrapping | | use[Utility]State | [value, setValue, instance] | Debounced/throttled React state | | use[Utility]Value | [derivedValue, instance] | Read-only derived value from props/state |
TanStack Pacer best practices for execution control in React — debouncing, throttling, rate limiting, queuing, and batching. Use when implementing search inputs, scroll handlers, API rate limits, task queues, bulk operations, or any scenario requiring controlled execution timing with reactive state. Source: fellipeutaka/leon.