router-query-integration

Official

Instant navigation, no waterfalls, just data.

AuthorMadAppGang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Achieving instant navigation and eliminating data fetching waterfalls in Single Page Applications (SPAs) can be complex. This Skill provides patterns for integrating TanStack Router with TanStack Query for optimal performance.

Core Features & Use Cases

  • Route Loader Prefetching: Use Router loaders to prefetch data with TanStack Query before navigation completes, ensuring instant perceived performance.
  • Parallel Data Fetching: Run multiple queries in parallel within loaders to avoid request waterfalls.
  • Type-Safe Integration: Leverage Query Options for maximum type safety and DRY configuration between loaders and components.
  • Optimized Navigation: Implement hover preloading on links to fetch data even before a user clicks.
  • Use Case: Configure a dashboard route to prefetch user data, statistics, and posts in parallel using Query loaders, ensuring all data is ready before the dashboard component renders.

Quick Start

Use the router-query-integration skill to set up a route loader that prefetches user data for /users/$id.

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: router-query-integration
Download link: https://github.com/MadAppGang/claude-code/archive/main.zip#router-query-integration

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