[PPF] Do not mark complete shell requests as partial (#97503)
The router code did not respect the isPartial byte for runtime app shells for some reason, potentially leading to unnecessary speculative prefetch requests even if the shell was in fact complete. The comments say that the byte on those can't be trusted: https://github.com/vercel/next.js/blob/d00eb6b6c471c9c51ef997f643b049210d9940a5/packages/next/src/client/components/segment-cache/cache.ts#L2694-L2696 which is not true -- the byte is definitely set to partial when a shell contains holes (due to URL data or link data). Updates some tests that now no longer trigger a speculative prefetch because the shell is complete. (note that our tests use `prefetch = 'partial'` a lot, so some of them were triggering speculative prefetches even when they shouldn't have. see #97469 for more)
Showing
Please
register
or
sign in
to comment