mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
c10b89598a
The implementation of `unstable_eager` is currently incomplete, causes bugs in the main Partial Prefetching flow (see #97469), and is generally not worth the complexity it adds, so we're removing it. We may add something like this back later if we think it's useful. Importantly, removing it fixes a bug that caused apps that use incremental opt-in (i.e. no global `partialPrefetching` config and `export const prefetch = 'partial'`) to issue speculative prefetches for all links without `prefetch={true}`, because any segment without an explicit `prefetch = "partial"` was marked as needing eager prefetching, which was then propagated to the whole route. See #97469 for a full explanation. This fix causes a lot of changes in tests, which were previously incorrectly asserting that we should be seeing two requests. Now that the unnecesary speculative prefetch is gone, most of them only see one.