What is TanStack Pacer?
mainTanStack Pacer is a framework-agnostic library designed to control the timing and execution of function calls. It provides high-quality, type-safe, and tree-shakable utilities to prevent performance issues, race conditions, and poor user experiences caused by uncontrolled function execution.
Key capabilities include:
- Debouncing: Delay execution until after a period of inactivity.
- Throttling: Limit the rate at which a function fires.
- Rate Limiting: Limit execution over a specific period (Fixed or Sliding Window).
- Queuing: Execute functions in FIFO, LIFO, or Priority order with concurrency and expiration controls.
- Batching: Group multiple operations into chunks based on time, size, or custom conditions.
Note: The library is currently in beta and the API is subject to change.