react/compose-with-tanstack-virtual
OfficialRender massive tables without crashing the browser
Software Engineering#react#performance optimization#virtualization#tanstack table#infinite scroll#server-side sorting#tanstack virtual
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents browser freezes when TanStack Table renders extremely large datasets by virtualizing which rows (and optionally columns) are actually mounted in the DOM.
Core Features & Use Cases
- Row virtualization for large datasets: Uses
useVirtualizerwithgetVirtualItems()so only visible rows render, avoiding rendering tens of thousands of<tr>elements. - Deepest-component virtualizer placement: Keeps
useVirtualizerin the most deeply nested component (e.g., aTableBody) to preserve scroll position and avoid remeasurement churn. - Column virtualization + padding placeholders: Supports
horizontal: truewith left/right placeholder cells to keep scroll width and alignment correct. - Infinite scroll integration: Combines virtualization with
useInfiniteQueryand requires server-side sorting viamanualSorting: trueto avoid row order scrambling.
Quick Start
Use the skill to implement row virtualization by placing useVirtualizer inside your TableBody, using rows.length for count, rendering only rowVirtualizer.getVirtualItems(), and positioning each virtual row with transform: translateY(virtualRow.start)px while making the <tbody> a grid with a fixed total height.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: react/compose-with-tanstack-virtual Download link: https://github.com/TanStack/table/archive/main.zip#react-compose-with-tanstack-virtual Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.