From 781f3402e93de1444cfd7d8b18b01747e7aeaeb5 Mon Sep 17 00:00:00 2001 From: Antonis Angelis <64701309+AdonisAgelis@users.noreply.github.com> Date: Sat, 26 Oct 2024 23:50:01 +0300 Subject: [PATCH] Update sync-dynamic-apis.mdx (#71907) --- errors/sync-dynamic-apis.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/sync-dynamic-apis.mdx b/errors/sync-dynamic-apis.mdx index ca9bc27083d5c..53a6a5a00087a 100644 --- a/errors/sync-dynamic-apis.mdx +++ b/errors/sync-dynamic-apis.mdx @@ -43,7 +43,7 @@ If the warning occured on the Server (e.g. a route handler, or a Server Componen you must `await` the dynamic API to access its properties: ```js filename="app/[id]/page.js" -function Page({ params }) { +async function Page({ params }) { // asynchronous access of `params.id`. const { id } = await params return

ID: {id}