react/compose-with-tanstack-pacer

Debounces TanStack Table v9 column filter commits and throttles resize updates with @tanstack/react-pacer.

28.3k|3.6k|Updated Oct 20, 2016
One-click install
npx skills add https://github.com/TanStack/table --skill react-compose-with-tanstack-pacer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react/compose-with-tanstack-pacer
Source: https://github.com/TanStack/table/tree/main/packages/react-table/skills/react/compose-with-tanstack-pacer
Command: npx skills add https://github.com/TanStack/table --skill react-compose-with-tanstack-pacer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves UI jank caused by React Table state updates firing on every keystroke for column filters and excessively fast updates during column resize drags.

Core Features & Use Cases

  • Debounced filter writers with instant input UX: keep local input state responsive while committing to the table state with trailing-edge debouncing.
  • Throttled resize updates for smooth drag interactions: throttle resize state changes to roughly one animation frame to avoid flooding updates.
  • Use cases: large datasets with expensive filtering, interactive column filter inputs, and drag-to-resize column headers in TanStack Table v9 React apps.

Quick Start

Install @tanstack/react-pacer and wrap your column filter onChange writers with useDebouncedCallback while throttling onColumnResizingChange with useThrottledCallback.

Frequently Asked Questions about react/compose-with-tanstack-pacer

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

FAQPage Schema
How do I fix TanStack Table column filtering lag during rapid typing?

Debouncing column filter commits fixes lag by keeping local input state responsive while delaying the table state update until typing settles, which reduces expensive row-model recomputations on large datasets.

Why does my React table freeze when dragging to resize columns?

Throttling resize state changes fixes table freezing by limiting updates to roughly one animation frame during drag interactions, preventing React Table from flooding the renderer with excessive column resize events.

What is the best way to debounce React Table filter inputs without losing responsiveness?

Using local immediate input state alongside a trailing-edge debounced callback for the table store update is the best way, ensuring the UI stays responsive while filtering computation waits for the user to pause typing.

Can I use @tanstack/react-pacer for both column resizing and filtering?

Yes, @tanstack/react-pacer provides useThrottledCallback for column resizing changes and useDebouncedCallback for filter writes, managing high-frequency state updates directly within TanStack Table v9 React workflows.

When should I throttle column resizes instead of debouncing them in React?

Throttle column resizes when you need continuous visual feedback during drag interactions, applying updates at a controlled animation frame rate, whereas debouncing batches updates only after the drag action completely stops.

Does TanStack Table v9 support throttled onColumnResizingChange updates?

Yes, TanStack Table v9 allows wrapping onColumnResizingChange with a throttled callback, effectively limiting the rate of state writes to achieve smooth drag interactions without flooding the React render cycle.