angular/compose-with-tanstack-virtual
OfficialVirtualize Angular TanStack Table row rendering
Software Engineering#performance#angular#virtualization#tanstack-table#virtualizer#row selection#row expansion
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Rendering very large TanStack Table datasets in Angular can become slow because the DOM mounts far more rows than the user can actually see.
Core Features & Use Cases
- Compose TanStack Table with
@tanstack/angular-virtualto render only the rows in the viewport (+ overscan) while TanStack Table stays headless and computes row/cell data. - Handle real-world table interactions such as sorting/filtering/grouping, variable row heights (via measuring), row expansion, and row selection keyed by row ID so state remains correct when rows scroll in and out of view.
- Use correct layout mechanics including a fixed-height scroll container, a
getTotalSize()-driven spacer height, and absolutely positioned rows withtranslateYto preserve accurate scrolling behavior.
Quick Start
Use the skill guidance to set a fixed-height scrolling container, compute rows = table.getRowModel().rows, create an Angular virtualizer using that row count, and render rowVirtualizer.getVirtualItems() with translateY(virtualRow.start) while setting the rows container height to rowVirtualizer.getTotalSize().
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: angular/compose-with-tanstack-virtual Download link: https://github.com/TanStack/table/archive/main.zip#angular-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.