diff --git a/docs/02-app/01-building-your-application/03-rendering/04-partial-prerendering.mdx b/docs/02-app/01-building-your-application/03-rendering/04-partial-prerendering.mdx index 3e23c39f06795..8445c6e1c7a41 100644 --- a/docs/02-app/01-building-your-application/03-rendering/04-partial-prerendering.mdx +++ b/docs/02-app/01-building-your-application/03-rendering/04-partial-prerendering.mdx @@ -235,10 +235,8 @@ export async function Table({ ``` ```jsx filename="app/table.js" switcher -export async function Table({ searchParams }: { - searchParams: Promise<{ sort: string }> -}) { - const sort = (await searchParams).sort === 'true'; +export async function Table({ searchParams }) { + const sort = (await searchParams).sort === 'true' return '...' } ```