mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Summary - Strip the configured `basePath` from response URL pathnames before reconstructing fallback route parameters on the client. - Add production regression coverage for both direct hydration and client navigation with Cache Components enabled. This prevents dynamic parameters from shifting when the response URL includes a base path but the App Router tree does not. ## Verification - Added production Turbopack E2E coverage for direct visits and client navigation. <!-- NEXT_JS_LLM_PR -->
10 lines
186 B
TypeScript
10 lines
186 B
TypeScript
'use client'
|
|
|
|
import { useParams } from 'next/navigation'
|
|
|
|
export default function Page() {
|
|
const { itemId } = useParams<{ itemId: string }>()
|
|
|
|
return <p id="item-id">{itemId}</p>
|
|
}
|