preact/compose-with-tanstack-store
OfficialWire Preact Table state to TanStack Store
Software Engineering#preact#atoms#datagrid#tanstack store#table state#state composition#reactive subscriptions
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Composing TanStack Table (Preact) with TanStack Store can be confusing, especially when you need predictable ownership of state slices and fine-grained reactivity across components.
Core Features & Use Cases
- Three reactive surfaces: Use
table.atoms.<slice>for per-slice readonly reads,table.storefor flat projections of full table state, andtable.baseAtoms.<slice>for internal writable state when the table owns the slice. - Slice ownership via external atoms: Provide your own atoms using
options.atomssouseTabletreats them as the source of truth and keeps table feature updates in sync. - Imperative persistence and cross-component sharing: Use
atom.subscribe(...)for syncing with storage or external systems, and reuse the same atom identity across components for consistent state.
Quick Start
Use the preact/compose-with-tanstack-store skill to connect your table state slices to external TanStack Store atoms, then read them with useSelector and let feature APIs write back to the owned atoms.
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: preact/compose-with-tanstack-store Download link: https://github.com/TanStack/table/archive/main.zip#preact-compose-with-tanstack-store 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.