Await params and searchParams
ProprietaryNext.js 15 passes params and searchParams to App Router pages, layouts, route handlers and metadata functions as promises. Reads a destructured params or searchParams from the props and awaits it, or unwraps it with use in a client component, and declares their types as promises. Meant for projects on Next.js 15 and React 19; run it through UpgradeToNextjs15 when upgrading.
io. moderne. nextjs.15. async-paramsmod run . --recipe= io. moderne. nextjs.15. async-paramsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.