rsnext/packages
Andrew Clark 5adacb6912
Add CacheNode.prefetchRsc field (#59537)
Adds a new field `prefetchRsc` to CacheNode that will be used by the PPR
implementation. It represents a static version of the segment that can
be showed immediately, and may or may not contain dynamic holes. It's
prefetched before a navigation occurs. During rendering, we will choose
whether to render `rsc` or `prefetchRsc` with `useDeferredValue`.

As with the `rsc` field, a value of `null` means no value was provided.
In this case, the LayoutRouter will go straight to rendering the `rsc`
value; if that one is also missing, it will suspend and trigger a lazy
fetch.

The non-PPR implementation will never set this value.

This PR adds the field to the CacheNode type but doesn't implement any
of the behavior yet. Mostly this involves updating the router reducer
unit tests.

Closes NEXT-1855
2023-12-12 13:28:05 -05:00
..
create-next-app Add text-wrap: balance to CNA template for card descriptions (#59384) 2023-12-11 17:41:01 -08:00
eslint-config-next v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
eslint-plugin-next v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
font v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next Add CacheNode.prefetchRsc field (#59537) 2023-12-12 13:28:05 -05:00
next-bundle-analyzer v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next-codemod v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next-env v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next-mdx v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next-plugin-storybook v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next-polyfill-module v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next-polyfill-nomodule v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
next-swc v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
react-dev-overlay v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
react-refresh-utils v14.0.5-canary.7 2023-12-11 20:43:59 +00:00
third-parties Fix third party typings (#59503) 2023-12-12 01:07:17 +01:00