mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This API has experimental modes for build validation but the dev validation is going to be stable in the next release.
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
import { Suspense } from 'react'
|
|
import { PathnameReader } from './pathname-reader'
|
|
|
|
export const instant = { level: 'experimental-error' }
|
|
|
|
export default function Page() {
|
|
return (
|
|
<main>
|
|
<p>usePathname() on a route without dynamic params should work fine.</p>
|
|
<Suspense fallback={<div>Loading...</div>}>
|
|
<PathnameReader />
|
|
</Suspense>
|
|
</main>
|
|
)
|
|
}
|