vue/compose-with-tanstack-store

Official

Share Vue table state using TanStack Store

AuthorTanStack
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Compose external, shareable TanStack Table state slices in Vue so sorting, pagination, filters, and selection stay consistent across components without fragile prop-drilling or callback plumbing.

Core Features & Use Cases

  • External slice ownership via atoms: Create your own state slices with createAtom and wire them into useTable using options.atoms for predictable cross-component sharing.
  • Reactive read surfaces: Read atom slices using useSelector (or computed) to keep Vue updates efficient and narrowly scoped.
  • Correct precedence and wiring: Ensure the table uses atoms[slice] over state[slice] to avoid silent dead configuration, and understand how table.reset() interacts with owned vs internal slices.
  • When to use atoms vs controlled state: Persist slices, coordinate side effects, and integrate with query keys by driving changes directly from atom writes.

Quick Start

Ask an AI to show how to create a stable sorting and pagination atom with @tanstack/vue-store, pass them via options.atoms into useTable, and read them reactively with useSelector so multiple Vue components share the same table state.

Dependency Matrix

Required Modules

None required

Components

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-store
Download link: https://github.com/TanStack/table/archive/main.zip#vue-compose-with-tanstack-store

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.