nextjs-pathname-id-fetch
CommunityFetch data by URL params in Next.js server components.
Authormcclowes
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This pattern helps fetch data using a URL parameter (id/slug) in Next.js server components for per-item pages like products or posts.
Core Features & Use Cases
- Create dynamic routes under app/[id]/page.tsx
- Access params as await params to fetch per-item data
- Simple pattern to keep server components data fetching clean
Quick Start
Create app/[id]/page.tsx as a server component that awaits params to extract id and fetch a resource, then render it.
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: nextjs-pathname-id-fetch Download link: https://github.com/mcclowes/vague-playground/archive/main.zip#nextjs-pathname-id-fetch 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.