tanstack-store

Manage immutable reactive state with Store, Derived, and Effect.

3|Updated May 11, 2026
One-click install
npx skills add https://github.com/JeromyJSmith/lattice-platform --skill tanstack-store-jeromyjsmith
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-store
Source: https://github.com/JeromyJSmith/lattice-platform/tree/main/.agents/skills/skills/tanstack-store
Command: npx skills add https://github.com/JeromyJSmith/lattice-platform --skill tanstack-store-jeromyjsmith

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TanStack Store eliminates the repetitive work of wiring up reactive application state by giving you an immutable, framework-adaptable store that stays consistent across React, Vue, Solid, Angular, and Svelte.

Core Features & Use Cases

  • Immutable reactive store: Manage state with Store, update it via setState, and notify subscribers predictably.
  • Computed values with Derived: Build Derived graphs for filtering, sorting, chaining transformations, and deriving UI-ready values.
  • Side effects with Effect + batching: Run side effects with Effect (including cleanup) and group related state updates with batch to reduce intermediate renders.
  • Framework adapters: Use @tanstack/react-store (and equivalent adapters) to connect the store to component lifecycles efficiently.

Example use case: Maintain a global data store for a table view, then derive filtered/sorted/paginated slices and connect them to UI components without duplicating state logic per framework.

Quick Start

Create a Store for your state, update it with setState, and subscribe from your UI using the appropriate TanStack framework adapter hook.

Frequently Asked Questions about tanstack-store

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage reactive state across multiple UI frameworks like React and Vue?

Framework-agnostic reactive state management solves cross-framework state sharing by providing an immutable store with dedicated adapters for React, Vue, Solid, Angular, and Svelte component lifecycles. This ensures predictable application data flows without duplicating state logic per framework.

How do I compute derived values from a reactive store for filtering and sorting?

To compute derived values from a reactive store, build Derived dependency graphs that chain transformations for filtering, sorting, and deriving UI-ready slices. This ensures computed values stay synchronized with the base state automatically.

How do I synchronize side effects and group state updates to reduce UI renders?

You synchronize side effects using Effect execution with cleanup functions, and group related state updates using batch. Batching applies atomic updates to prevent intermediate UI renders, keeping your application data flow predictable and efficient.

Does this state management approach work with Solid and Angular component lifecycles?

Yes, this reactive state approach works with Solid and Angular through dedicated framework adapters. These adapters connect the immutable store directly to component lifecycles, allowing you to subscribe and update state predictably across these environments.

What is the best way to maintain a global data store for table views with pagination?

The best way to maintain a global data store for table views is to create an immutable Store, derive filtered, sorted, and paginated slices using Derived graphs, and connect them to UI components via framework adapters without duplicating state logic.