next.js
9895972d - [partial fallbacks]: include prefetch requests in shell upgrade handling (#92894)

Commit
92 days ago
[partial fallbacks]: include prefetch requests in shell upgrade handling (#92894) With the new `partialFallbacks` heuristic, routes that weren't part of `generateStaticParams` will now upgrade their shells to include the params as if they had been in `generateStaticParams`, but only when the page with the unknown param was lazily visited. This tweaks the heuristic to allow segment prefetches to also trigger the upgrade behavior. This will ensure subsequent clients, when prefetching the upgraded route, will receive the entry with params filled in rather than showing the generic fallback. In a subsequent PR, we'll make it so that the requesting client that triggers the upgrade path can also benefit from the params being upgraded, as the client router currently has no awareness that a background revalidation completed.
Author
Parents
Loading