What problem does it solve?
Nuxt 4 applications frequently suffer from hydration mismatches between server-rendered HTML and client state, inefficient data fetching that causes duplicate requests and bloated payloads, and misconfigured rendering strategies that hurt SEO or performance.
Core Features & Use Cases
- Hydration Safety Guidance: Provides clear rules to avoid server-client markup mismatches, including proper use of client-only logic, onMounted(), and ClientOnly components for browser-only features.
- Optimized Data Fetching Patterns: Covers best practices for useFetch and useAsyncData to enable SSR-safe data loading, lazy loading for non-critical content, and payload size optimization.
- Rendering Strategy Configuration: Helps developers set appropriate route rules for prerender, ISR, SWR, and client-only routes to balance SEO, freshness, and performance for different page types.
- Use Case: A developer building a Nuxt 4 content site can use this skill to ensure blog posts render correctly for SEO via prerender, lazy load non-critical comment sections, and avoid hydration errors from client-only date displays.
Quick Start
Use the nuxt4-patterns skill to fix hydration mismatches and optimize data fetching for your Nuxt 4 application.