ข้ามไปยังเนื้อหาหลัก
เนื้อหานี้ยังไม่มีในภาษาของคุณ และกำลังแสดงเป็นภาษาอังกฤษ

Next.js: useSearchParams with Suspense Pattern

Skill ยืนยันแล้ว
98

Pattern for using useSearchParams hook with Suspense boundary in Next.js. Covers the required combination of 'use client' directive and Suspense wrapper when accessing URL query parameters in client components. Use when building search interfaces, filters, pagination, or any feature that needs to read/manipulate URL query parameters client-side.

สรุปโดย AI

This extension details the required combination of the 'use client' directive and a Suspense wrapper for accessing URL query parameters in Next.js client components. It includes multiple code examples for search interfaces, filters, and pagination, along with explanations of common mistakes and best practices.

การติดตั้ง

npx skills add wsimmonds/claude-nextjs-skills

เรียกใช้ Vercel skills CLI (skills.sh) ผ่าน npx — ต้องติดตั้ง Node.js ในเครื่อง และมี agent ที่รองรับ skills อย่างน้อยหนึ่งตัว (Claude Code, Cursor, Codex, …) ทั้งนี้สมมติว่า repo ใช้รูปแบบ agentskills.io

6 months ago
90 stars
MIT
อัปเดตเมื่อ about 14 hours ago
ดูซอร์สโค้ด