Files
next.js/test/e2e/app-dir/ppr-navigations/prefetch-navigation/app/page.tsx
Zack TannerandGitHub 19316b7b5f Fix PPR navigations & revert layerAssets property from FlightData (#67435)
This PR was originally intended to ensure style/script tags were always
rendered for all visible parallel routes, as before only the "first"
child was rendered, similar to `head`.

However, it caused a regression in PPR navigations, as the pending task
on the `layerAssets` CacheNode meant that the `useDeferredValue` call in
`layout-router` wouldn't be able to immediately switch to the prefetched
RSC payload, as it was blocked by the dynamic response.

Since `rsc` and `layerAssets` are both created by the same thing, this
stack of PRs rewinds some of that work to combine them.

This PR only reverts the previous implementation, and adds a test for
the PPR navigation case that was failing.

**Note: While I've split these PRs out for readability, this should land
with #67436 as this PR by itself does not restore the CSS behavior that
was fixed in the original implementation.**
2024-07-09 11:49:33 -07:00

10 lines
153 B
TypeScript

import Link from 'next/link'
export default function Page() {
return (
<div>
<Link href="/catch-all/1">To Test Page</Link>
</div>
)
}