mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
A continuation of #51864 with RedirectType used in an e2e test and some ts-ignores removed from the codebase. Happy to split it into two PRs but I left comments in the two consequential files ---------
18 lines
429 B
JavaScript
18 lines
429 B
JavaScript
import { strict as assert } from 'node:assert'
|
|
import Link from 'next/link'
|
|
import { NEXT_RSC_UNION_QUERY } from 'next/dist/client/components/app-router-headers'
|
|
|
|
export default function Page({ searchParams }) {
|
|
assert(searchParams[NEXT_RSC_UNION_QUERY] === undefined)
|
|
|
|
return (
|
|
<>
|
|
<p>no rsc query page</p>
|
|
return{' '}
|
|
<Link id="link-to-pages" href="/some">
|
|
To /some
|
|
</Link>
|
|
</>
|
|
)
|
|
}
|