From f813dd4a810506e62cf2982d52a5f324f566283b Mon Sep 17 00:00:00 2001 From: Konstantin Pschera Date: Sat, 11 Jan 2025 21:19:59 +0100 Subject: [PATCH] Fix small bug in getting started docs (#74744) This will fix a small bug in one of the examples in the Getting Started docs. The examples declares a variable that's already declared in the props which would result in an error when running this. --- .../01-getting-started/06-data-fetching-and-streaming.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 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..374b5d6db4ccc 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 @@ -141,11 +141,11 @@ export default function Posts({ }: { posts: Promise<{ id: string; title: string }[]> }) { - const posts = use(posts) + const allPosts = use(posts) return (