Loading...
Loading...
Implement, review, and refactor type-safe URL query state with nuqs in React 19+ and TypeScript 5.9+ codebases. If Next.js is involved, assume Next.js 16+ App Router only, and target current evergreen browsers without legacy compatibility workarounds.
npx skill4agent add lednhatkhanh/skills use-nuqspage.tsxlayout.tsxuseQueryStatesnullvaluewithDefault('')value={query ?? ''}useQueryStateuseQueryStatesuseQueryStateuseQueryStatesnullnuqs/serversearchParamsshallow: falsestartTransitionstartTransitionshallow: falsehistory: 'replace'history: 'push'urlKeys# run project-specific equivalents as available
pnpm -s tsc --noEmit
pnpm -s lint
pnpm -s testpnpm -s test -- --runInBand # isolate flaky URL/state tests
pnpm -s test searchParams # focused component or hook tests
pnpm -s test:e2e # back/forward, refresh, and deep-link verificationuseQueryStateuseQueryStatesNuqsAdapternuqs/servershallow: falseeq