TanStack Table

Configure TanStack Table v8 for server-side pagination, filtering, and sorting on Cloudflare Workers.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill tanstack-table
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: TanStack Table
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/tanstack-table
Command: npx skills add https://github.com/ovachiever/droid-tings --skill tanstack-table

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates the complex setup of data tables, eliminating common errors and performance bottlenecks when dealing with large datasets, server-side interactions, and Cloudflare D1 integration. It saves you hours of debugging and ensures your tables are fast, reliable, and type-safe.

Core Features & Use Cases

  • Server-Side Mastery: Seamlessly implement pagination, filtering, and sorting with your API backend, optimized for Cloudflare Workers + D1, reducing client-side load.
  • Blazing Fast Performance: Utilize virtualization with TanStack Virtual to efficiently render 10,000+ rows without lag, ensuring smooth user experience.
  • Error Prevention: Avoid 6+ common pitfalls like infinite re-renders and state mismatches with built-in best practices and TypeScript patterns.
  • Use Case: Create a user management dashboard that displays thousands of users, with server-side pagination and search, ensuring a smooth user experience and efficient data fetching from your Cloudflare D1 database.

Quick Start

Help me create a server-side paginated table using TanStack Table and TanStack Query for my users data.

Frequently Asked Questions about TanStack Table

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

FAQPage Schema
How do I build a server-side paginated data table with TanStack Table?

Server-side paginated data tables with TanStack Table coordinate pagination, filtering, and sorting through your API backend. Use TanStack Query to manage server state, TanStack Table for column and row logic, and pass pagination flags explicitly to your endpoint. This pattern reduces client-side load and handles large datasets efficiently.

Can I render thousands of rows without performance lag in React?

Yes, virtualization with TanStack Virtual renders only visible rows in the viewport, enabling smooth performance with 10,000+ rows. Combine it with TanStack Table's row model and lazy-load data from your server to maintain fast interactions on large datasets.

Does TanStack Table work with Cloudflare D1 and Workers?

TanStack Table is framework-agnostic and works with any backend, including Cloudflare Workers and D1. Implement server-side pagination and filtering in your Worker endpoint, use TanStack Query to fetch and cache results, and synchronize table state with URL parameters for persistent user navigation.

What are common mistakes when building server-side data tables?

Common pitfalls include infinite re-renders from unstable query keys, state mismatches between client and server pagination, missing error handling for failed requests, and client-side filtering of server-paginated data. TanStack Table with stable query-key patterns, explicit server flags, and comprehensive error prevention prevents these issues.

How do I synchronize table state like sorting and filtering with my URL?

Store pagination, sorting, and filtering state in URL search parameters using libraries like query-string or URLSearchParams. Pass these parameters to TanStack Query's query key and server endpoint, then update the URL when table state changes. This pattern enables shareable links and browser back/forward navigation.

Do I need TypeScript for type-safe data tables?

TypeScript is not required but is strongly recommended for data tables. TanStack Table v8 provides excellent TypeScript support with generic column definitions and row data types, preventing runtime errors in server requests, API responses, and table rendering logic.