Skip to content

Commit

Permalink
Fix small bug in getting started docs (#74744)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
k15a authored Jan 11, 2025
1 parent 6319dbb commit f813dd4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ export default function Posts({
}: {
posts: Promise<{ id: string; title: string }[]>
}) {
const posts = use(posts)
const allPosts = use(posts)

return (
<ul>
{posts.map((post) => (
{allPosts.map((post) => (
<li key={post.id}>{post.title}</li>
))}
</ul>
Expand Down

0 comments on commit f813dd4

Please sign in to comment.