mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Reverts the revert of #95878. This failed on `main` due to React bugs (https://github.com/react/react/pull/37061?) which are fixed now.
19 lines
454 B
TypeScript
19 lines
454 B
TypeScript
import Link from 'next/link'
|
|
import { Suspense } from 'react'
|
|
|
|
async function SearchParams({ searchParams }: { searchParams: any }) {
|
|
return <p>{JSON.stringify(await searchParams)}</p>
|
|
}
|
|
|
|
export default function Page({ searchParams }: { searchParams: any }) {
|
|
return (
|
|
<>
|
|
<Link href="/">/</Link>
|
|
<Link href="/?q=bar">/?q=bar</Link>
|
|
<Suspense>
|
|
<SearchParams searchParams={searchParams} />
|
|
</Suspense>
|
|
</>
|
|
)
|
|
}
|