diff --git a/test/e2e/app-dir/ppr-full/app/dynamic-data/incidental-postpone/page.jsx b/test/e2e/app-dir/ppr-full/app/dynamic-data/incidental-postpone/page.jsx index aa4b223ceb3c3..5e7cd19c17095 100644 --- a/test/e2e/app-dir/ppr-full/app/dynamic-data/incidental-postpone/page.jsx +++ b/test/e2e/app-dir/ppr-full/app/dynamic-data/incidental-postpone/page.jsx @@ -2,13 +2,12 @@ import { Suspense, unstable_postpone as postpone } from 'react' import { Optimistic } from '../../../components/optimistic' import { ServerHtml } from '../../../components/server-html' -export default async (props) => { - const searchParams = await props.searchParams +export default (props) => { return ( <> - + diff --git a/test/e2e/app-dir/ppr-full/app/dynamic-data/page.jsx b/test/e2e/app-dir/ppr-full/app/dynamic-data/page.jsx index afc6de8ff9716..2fb79364b8499 100644 --- a/test/e2e/app-dir/ppr-full/app/dynamic-data/page.jsx +++ b/test/e2e/app-dir/ppr-full/app/dynamic-data/page.jsx @@ -2,13 +2,12 @@ import { Suspense } from 'react' import { Optimistic } from '../../components/optimistic' import { ServerHtml } from '../../components/server-html' -export default async (props) => { - const searchParams = await props.searchParams +export default (props) => { return ( <> - + ) diff --git a/test/e2e/app-dir/ppr-full/app/fallback/dynamic/params/[slug]/page.jsx b/test/e2e/app-dir/ppr-full/app/fallback/dynamic/params/[slug]/page.jsx index bec77bf1db5bd..bbb3f0d30caec 100644 --- a/test/e2e/app-dir/ppr-full/app/fallback/dynamic/params/[slug]/page.jsx +++ b/test/e2e/app-dir/ppr-full/app/fallback/dynamic/params/[slug]/page.jsx @@ -2,13 +2,14 @@ import { headers } from 'next/headers' import { Suspense } from 'react' import { setTimeout } from 'timers/promises' -function Dynamic() { - const agent = headers().get('user-agent') +async function Dynamic() { + const agent = (await headers()).get('user-agent') return
{agent}
} -export default async function Page({ params }) { +export default async function Page(props) { + const params = await props.params await setTimeout(1000) const { slug } = params