vue/compose-with-tanstack-query
OfficialWire Vue table state to server queries cleanly
Software Engineering#vue#tanstack query#server-side pagination#tanstack table#rowCount#reactive query key#manual state control
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves the problem of implementing server-side pagination, sorting, and filtering in a Vue data grid without breaking reactivity or causing incorrect page counts and UI flicker during refetches.
Core Features & Use Cases
- Server-controlled pagination/sorting/filtering: Use
manualPagination,manualSorting, andmanualFilteringso the table renders exactly the server-supplied slice. - Query-driven data fetching keyed by table state: Build a reactive
useQuery(() => ({ queryKey, queryFn }))that refetches whenever pagination/sorting/filter state changes. - Correct paging metadata: Provide
rowCountsotable.getPageCount()works without loading all rows client-side. - Smooth UX during transitions: Use
placeholderData: keepPreviousDatato prevent a “0 rows flash” while new pages load. - Recommended atom pattern: Leverage external
createAtom+options.atomsso table updates automatically propagate to the query withouton[State]Changewiring. - Use Case: When you have a large “people” dataset and want the pager, sort headers, and filters to drive API requests that return paginated results plus a total row count.
Quick Start
Use the skill to implement an example server-paginated @tanstack/vue-table + @tanstack/vue-query integration following the documented approach in the canonical Vue example.
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: vue/compose-with-tanstack-query Download link: https://github.com/TanStack/table/archive/main.zip#vue-compose-with-tanstack-query 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.