compositions/router-query
OfficialCoordinate Router with Query data across SSR
AuthorTanStack
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Coordinating TanStack Router navigations with TanStack Query to centralize data caching and hydration.
Core Features & Use Cases
- Data-coordinated routing: loader data is backed by Query's cache, with per-request isolation in SSR setups.
- SSR hydration & streaming: automatic dehydration/hydration of query state across server and client.
- UseSuspenseQuery integration: components subscribe to cache updates with minimal loading states.
Quick Start
Instantiate a QueryClient, attach it to the router context, and use ensureQueryData with useSuspenseQuery in route components.
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: compositions/router-query Download link: https://github.com/TanStack/router/archive/main.zip#compositions-router-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.