From 3ed6240b242825acc991ac6f49e83553442ab537 Mon Sep 17 00:00:00 2001 From: Hyungji <84058944+hyungjikim@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:41:20 +0900 Subject: [PATCH] docs: incorrect `params.id` (#73045) --- .../02-data-fetching/04-incremental-static-regeneration.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx b/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx index 8ea27c4b43141f..7e2b5e2f509ff5 100644 --- a/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx +++ b/docs/01-app/02-building-your-application/02-data-fetching/04-incremental-static-regeneration.mdx @@ -54,9 +54,9 @@ export default async function Page({ params: Promise<{ id: string }> }) { const id = (await params).id - const post: Post = await fetch( - `https://api.vercel.app/blog/${params.id}` - ).then((res) => res.json()) + const post: Post = await fetch(`https://api.vercel.app/blog/${id}`).then( + (res) => res.json() + ) return (

{post.title}