ssr-data-fetching

Community

Orchestrate SSR-first data with seamless hydration.

Authormadlado87
Version1.0.0
Installs0

System Documentation

What problem does it solve?

SSR-first data fetching with TanStack Query v5 enables server prefetch and client hydration, ensuring pages render with data on first paint and reduce perceived latency.

Core Features & Use Cases

  • Server prefetch and client hydration using TanStack Query v5 to provide fully rendered pages on first load.
  • Consistent hydration by enforcing identical query keys between server prefetch functions and client hooks.
  • Hydration pattern using HydrationBoundary and server/client API clients to streamline Next.js data flows.
  • Use Case: Build data-intensive dashboards that must render with data without loading spinners on initial render.

Quick Start

Run prefetchTasks() on the server and wrap your page with Hydrate to hydrate data on the client.

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: ssr-data-fetching
Download link: https://github.com/madlado87/agentes/archive/main.zip#ssr-data-fetching

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 223,000+ vetted skills library on demand.