tanstack-table

Translate data-table requirements into TanStack Table v8 server-side patterns.

204|30|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/secondsky/claude-skills --skill tanstack-table-secondsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-table
Source: https://github.com/secondsky/claude-skills/tree/main/plugins/tanstack-table/skills/tanstack-table
Command: npx skills add https://github.com/secondsky/claude-skills --skill tanstack-table-secondsky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/react-table, @tanstack/match-sorter-utils, @tanstack/react-query, react, and includes references (resource) components.

What problem does it solve?

Provides production-ready table patterns, server-side data handling, and integration tips for TanStack Table v8.

Core Features & Use Cases

  • Production templates for common table patterns
  • Server-side pagination, filtering, and sorting
  • Cloudflare D1 and virtualization patterns for large datasets
  • TanStack Query coordination and URL/state synchronization

Quick Start

Install TanStack Table and copy templates to start building data tables with server-side features.

Frequently Asked Questions about tanstack-table

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

FAQPage Schema
How do I implement server-side pagination in a React data table?

Server-side pagination offloads data fetching to your backend, reducing client memory load. TanStack Table v8 coordinates with TanStack Query to manage page state, send offset/limit parameters to your API, and re-render only when new data arrives. This pattern scales to large datasets without loading everything into the browser.

Can I use TanStack Table with Cloudflare D1 for production tables?

Yes. TanStack Table integrates with Cloudflare D1 through server-side handlers that execute SQL queries against your D1 database. The Skill covers D1 SQL patterns, Workers bindings, and pagination logic to fetch filtered, sorted results directly from your edge database.

What's the best way to keep URL state synchronized with table filters and sorting?

URL synchronization ensures users can bookmark and share filtered table states. TanStack Table stores pagination, sorting, and filter state in URL parameters via TanStack Query, so browser back/forward and direct links preserve the exact table view without re-fetching unnecessary data.

How do I handle large datasets without freezing the table UI?

Virtualization renders only visible rows, drastically reducing DOM nodes. Combined with server-side pagination, TanStack Table virtualizes row lists so tables with thousands of records remain responsive. The Skill includes virtualization patterns that work alongside server-side fetching for optimal performance.

Do I need TypeScript to use TanStack Table v8 for data tables?

TypeScript is strongly recommended but not mandatory. TanStack Table v8 is built with TypeScript-first type safety for column definitions, row data, and API responses. The Skill assumes TypeScript for type-safe patterns, though JavaScript projects can adopt a subset of the patterns without full type coverage.

What are common pitfalls when coordinating TanStack Table with API calls?

Frequent mistakes include fetching all data upfront, losing filter state on refresh, and misaligned pagination parameters between client and server. The Skill covers error prevention through TanStack Query coordination, proper state serialization to URLs, and validating offset/limit ranges to avoid data inconsistencies.