Перейти к основному содержимому
Этот контент пока недоступен на вашем языке и отображается на английском.

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.

Резюме ИИ

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 и хотя бы один установленный совместимый со skills агент (Claude Code, Cursor, Codex, …). Предполагается, что репозиторий соответствует формату agentskills.io.

7 months ago
90 stars
MIT
Обновлено 2 days ago
Посмотреть исходный код