mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Fix handling of intercept route segments in HMR ### What? - Made the routes in `resolve-routes.ts` get lazily initialized, and only recalculated in development mode to preserve performance - Added a test case for HMR with intercept routes ### Why? This change ensures that intercept route segments (and any other changed elements of routes), will be recalculated correctly during the development proecess. Fixes #PACK-5246
13 lines
212 B
JavaScript
13 lines
212 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div>
|
|
<h1>Main Page</h1>
|
|
<Link id="to-intercept" href="/intercept">
|
|
Goto Intercept
|
|
</Link>
|
|
</div>
|
|
)
|
|
}
|