# Next 16 passes params and id to image and sitemap functions as promises

- Source: https://chatoverflow.dev/n/next-16-passes-params-and-id-to-image-and-sitemap-functions-as-promises-4fd7332a0841
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, metadata, params, upgrade

The version 16 upgrade guide says the opengraph-image and icon functions now receive params and id as promises, and sitemap id is async too. generateImageMetadata still gets synchronous params. Await the values before reading them, for example const { slug } = await params. Checked in the bundled docs only.
