
Nextjs Data Fetching
Server and client data fetching patterns for Next.js App Router, covering ISR, revalidation, and loading states.
- skills.sh installs
- 3.9K
- GitHub stars
- 372
- last updated
- Aug 21, 2026
What it does
- Covers Server Component fetching, parallel and sequential requests, SWR and React Query setup, and Server Actions
- Includes ISR with
revalidateintervals, tag-based on-demand revalidation viarevalidateTag, andcache: 'no-store'opt-outs - Enforces
'use client'for hook-based fetching and warns againstforce-cacheon user-specific data - Designed for Next.js App Router apps choosing between server and client fetching with error and loading states
Install
$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill nextjs-data-fetching -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Next.js Data Fetching
Overview
Provides patterns for data fetching in Next.js App Router: server-side fetching, SWR/React Query integration, ISR, revalidation, error boundaries, and loading states.
When to Use
- Implementing data fetching in Next.js App Router
- Choosing between Server Components and Client Components
- Setting up SWR or React Query for client-side caching
- Configuring ISR, time-based, or on-demand revalidation
- Handling loading and error states
- Building forms with Server Actions
Instructions
Server Component Fetching
Fetch directly in async Server Components:
async function getPosts() {
const res = await fetch('https://api.example.com/posts');
if (!res.ok) throw new Error('Failed to fetch posts');
return res.json();
}
export default async function PostsPage() {
const posts = await getPosts();
return (
<ul>
{posts.map((post) => (
<li key={post.id}>{post.title}</li>
))}
</ul>
);
}
Parallel Data Fetching
Use Promise.all() for independent requests:
Details
- Repository
- github.com/giuseppe-trisciuoglio/developer-kit
- Category
- Frontend & UI Code
- First seen
- May 16, 2026
More from giuseppe-trisciuoglio/developer-kit
All 95- Spring Data Neo4j3.9K
- Unit Test Security Authorization3.9K
- Nx Monorepo3.9K
- Langchain4j Spring Boot Integration3.9K
- Langchain4j Tool Function Calling Patterns3.9K
- Langchain4j Rag Implementation Patterns3.9K
- Unit Test Scheduled Async3.9K
- Rag3.9K
- Unit Test Utility Methods3.9K
- Qdrant3.9K
- Unit Test Exception Handler3.9K
- Unit Test Mapper Converter3.9K
- Langchain4j Ai Services Patterns3.9K
- Unit Test Caching3.9K
- Unit Test Config Properties3.9K
- Unit Test Application Events3.9K
- Langchain4j Vector Stores Configuration3.9K
- Langchain4j Mcp Server Patterns3.9K
- Aws Sdk Java V2 S33.9K
- Langchain4j Testing Strategies3.9K
- Aws Sdk Java V2 Dynamodb3.9K
- Aws Rds Spring Boot Integration3.9K
- Nextjs Deployment3.9K
- Aws Sdk Java V2 Lambda3.9K
Similar to Nextjs Data Fetching
More Frontend & UI Code
nextjs-best-practicesdavila7/claude-code-templates633 installsNext.js App Router principles covering Server Components, data fetching, routing, caching, and server actions.
nextjs-developmentmanutej/luxor-claude-marketplace475 installsComprehensive Next.js guidance for App Router, Server Components, data fetching, routing, and middleware.
nextjs-app-routergiuseppe-trisciuoglio/developer-kit4.1K installsModern App Router guide for Next.js 16+ covering Server Components, Server Actions, caching, and routing conventions.
nextjs-corebobmatnyc/claude-mpm-skills362 installsApp Router patterns for Server Components, Server Actions, route handlers, and explicit caching with revalidation.
nextjs-app-router-patternswshobson/agents34.1K installsComprehensive App Router patterns for Next.js 14+ covering Server Components, streaming, and data fetching.
react-server-componentspatricio0312rev/skills288 installsCovers RSC data fetching, streaming, and server/client composition for Next.js App Router projects.