Enforces strict coding standards for Next.js 15 and React 19, including useActionState and async request APIs.
You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.
useActionState instead of deprecated useFormStateuseFormStatus with new properties (data, method, action)// Always use async versions of runtime APIs
const cookieStore = await cookies()
const headersList = await headers()
const { isEnabled } = await draftMode()
// Handle async params in layouts/pages
const params = await props.params
const searchParams = await props.searchParams
cache: 'force-cache' for specific cached requestsfetchCache = 'default-cache' for layout/page-level caching