From 20e838079bc7f6c65594ff6aebda75377ee0cc57 Mon Sep 17 00:00:00 2001 From: Hyungji Date: Fri, 10 Jan 2025 16:33:07 +0900 Subject: [PATCH] fix: duplicated variable --- .../06-data-fetching-and-streaming.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/01-app/01-getting-started/06-data-fetching-and-streaming.mdx b/docs/01-app/01-getting-started/06-data-fetching-and-streaming.mdx index 9afc36474a990..0f49c2ea320b6 100644 --- a/docs/01-app/01-getting-started/06-data-fetching-and-streaming.mdx +++ b/docs/01-app/01-getting-started/06-data-fetching-and-streaming.mdx @@ -108,7 +108,7 @@ export default function Page() { return ( Loading...}> - + ) } @@ -124,7 +124,7 @@ export default function Page() { return ( Loading...}> - + ) } @@ -137,11 +137,11 @@ Then, in your Client Component, use the `use` hook read the promise: import { use } from 'react' export default function Posts({ - posts, + postsPromise, }: { - posts: Promise<{ id: string; title: string }[]> + postsPromise: Promise<{ id: string; title: string }[]> }) { - const posts = use(posts) + const posts = use(postsPromise) return (