tanstack-pacer

Manage function execution timing in React with debounce, throttle, and batching utilities.

6|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/fellipeutaka/denji --skill tanstack-pacer-fellipeutaka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-pacer
Source: https://github.com/fellipeutaka/denji/tree/main/.agents/skills/tanstack-pacer
Command: npx skills add https://github.com/fellipeutaka/denji --skill tanstack-pacer-fellipeutaka

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/react-pacer, @tanstack/react-devtools, @tanstack/react-pacer-devtools, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers manage the timing of function executions in React applications, preventing excessive API calls, flickering, and performance issues.

Core Features & Use Cases

  • Debouncing, Throttling, Rate Limiting, Queuing, Batching: Implements various execution control utilities for reactive UIs.
  • Use Case: Enhance search input responsiveness by debouncing input events, or limit API request rates during high-frequency interactions.
  • Example: Use this Skill to implement a search box that sends queries 300ms after user stops typing, reducing server load.

Quick Start

Use this Skill to debounce a search input by installing '@tanstack/react-pacer' and wrapping your input handler with 'useDebouncedCallback'.

Frequently Asked Questions about tanstack-pacer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debounce a search input in React to reduce API calls?

To debounce a search input in React, you can use a hook like useDebouncedCallback to wrap your input handler, delaying the API call until the user stops typing. This prevents excessive requests and flickering, reducing server load during high-frequency interactions.

What is the difference between throttling and rate limiting for execution control?

Throttling limits function execution to a maximum frequency over time, while rate limiting restricts the total number of executions within a specific window. Both execution control techniques prevent performance issues in reactive UIs but manage event timing differently.

Does this execution control approach work with React devtools?

Yes, this execution control approach works with React devtools. It integrates with @tanstack/react-devtools and @tanstack/react-pacer-devtools, allowing you to monitor and inspect timing behaviors to ensure smooth UI experiences and safe, efficient execution.

How do I batch UI events in React to improve responsiveness?

To batch UI events in React, apply batching utilities that group multiple high-frequency executions into a single call. This execution control technique improves performance and responsiveness by preventing excessive processing during rapid user interactions.

What is the best way to manage function queuing in React applications?

The best way to manage function queuing in React is using dedicated queuing utilities that sequence executions safely. This ensures precise control over how and when functions run, preventing race conditions and ensuring efficient execution with error handling.