nextjs-ssr
CommunityRender URL state correctly on first paint
System Documentation
What problem does it solve?
This Skill prevents Next.js App Router pages from flashing default values when URL-backed state is first rendered without server-provided query knowledge.
Core Features & Use Cases
- Forward server searchParams into useUrlState so the initial render reflects the real URL state and avoids hydration warnings or visible UI flicker.
- Support both initialization approaches: pass
searchParamsfrom a Server Component or derive state in a pure Client Component viauseSearchParams. - Choose the correct URL update mode with
useHistoryto control whether URL changes trigger client-only updates or server re-fetches.
Use case: you have a jobs filtering UI where the filter status is encoded in the URL; this Skill ensures the very first render shows the correct filtered results and keeps the UI consistent during navigation.
Quick Start
Load this skill and wire searchParams from your app/*/page.tsx into a client component’s useUrlState so the initial state is correct before hydration.
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-ssr Download link: https://github.com/asmyshlyaev177/state-in-url/archive/main.zip#nextjs-ssr 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.