diff --git a/docs/01-app/02-guides/upgrading/version-16.mdx b/docs/01-app/02-guides/upgrading/version-16.mdx index 408905a25a2b3..f76bee581a6d0 100644 --- a/docs/01-app/02-guides/upgrading/version-16.mdx +++ b/docs/01-app/02-guides/upgrading/version-16.mdx @@ -322,12 +322,11 @@ export default function Image({ params, id }) { } ``` -Starting with **Next.js 16**, to align with the [Async Request APIs](#async-request-apis-breaking-change) change, these are also asynchronous. +Starting with **Next.js 16**, to align with the [Async Request APIs](#async-request-apis-breaking-change) change, the image generating function now receives `params` and `id` as promises. The `generateImageMetadata` function continues to receive synchronous `params`. ```js filename="app/shop/[slug]/opengraph-image.js" -// Next.js 16 - asynchronous params access export async function generateImageMetadata({ params }) { - const { slug } = await params + const { slug } = params return [{ id: '1' }, { id: '2' }] }