import { getSentinelValue } from '../../../getSentinelValue' import { Suspense, use } from 'react' type AnySearchParams = { [key: string]: string | string[] | undefined } export default async function Page({ searchParams, }: { searchParams: Promise }) { return ( <>

This page `use`'s the searchParams promise before accessing a property on it.

With PPR we expect the page to have an empty shell

Without PPR we expect the page to be dynamic

) } function Component({ searchParams, }: { searchParams: Promise }) { const params = use(searchParams) return ( <>
This component accessed `searchParams.sentinel`: " {params.sentinel}"
{getSentinelValue()} ) } function ComponentTwo() { return null }