Next.js 15 Requires Awaiting params and Other Dynamic APIs in Page Components
Developers upgrading to Next.js 15 or following older App Router tutorials may encounter a warning stating that params should be awaited before its properties are accessed. This happens because Next.js 15 made several request-based values — including params, searchParams, cookies(), headers(), and draftMode() — asynchronous. Previously, route parameters like params.slug could be read directly as plain JavaScript object properties, but this approach no longer works as expected in the latest version. The fix requires marking the page component as async and using await on params before reading any of its properties. The same awaiting pattern applies to all other Dynamic APIs that depend on the incoming request in Next.js 15+.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in