Unverified Commit 9d8b145d authored by Antonis Angelis's avatar Antonis Angelis Committed by GitHub

Update sync-dynamic-apis.mdx (#71907)

parent 5a0d6034
...@@ -43,7 +43,7 @@ If the warning occured on the Server (e.g. a route handler, or a Server Componen ...@@ -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: you must `await` the dynamic API to access its properties:
```js filename="app/[id]/page.js" ```js filename="app/[id]/page.js"
function Page({ params }) { async function Page({ params }) {
// asynchronous access of `params.id`. // asynchronous access of `params.id`.
const { id } = await params const { id } = await params
return <p>ID: {id}</p> return <p>ID: {id}</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment