rsnext/packages
Jiachi Liu 60ab8f6363
Fix loading navigation with metadata and prefetch (#66447)
### What & Why

Fixes NEXT-3498

Fixed loading shows up and disappear during client navigation, when you
defined `prefetch` is enabled and slow `generateMetadata` is defined. In
#64532, where in layout-router, we removed the place of infinite
suspense, adding it back so that the app can still remain suspensy
during navigation.

#### Behavior before fix

Prefetch -> Link Navigation -> Show `loading.js` -> RSC payload fetched
(no page content) -> the page content will display later when the
promise is resolved

#### Behavior after the fix

Prefetch -> Link Navigation -> Show `loading.js` -> RSC payload fetched
-> suspensy page content still triggering `loading.js` -> display the
resolved page content when the promise is resolved

---------

Co-authored-by: Zack Tanner <1939140+ztanner@users.noreply.github.com>
2024-06-05 15:48:11 -07:00
..
create-next-app v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
eslint-config-next v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
eslint-plugin-next v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
font v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next Fix loading navigation with metadata and prefetch (#66447) 2024-06-05 15:48:11 -07:00
next-bundle-analyzer v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next-codemod v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next-env v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next-mdx v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next-plugin-storybook v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next-polyfill-module v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next-polyfill-nomodule v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
next-swc v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
react-refresh-utils v15.0.0-canary.13 2024-06-05 20:50:56 +00:00
third-parties v15.0.0-canary.13 2024-06-05 20:50:56 +00:00