rsnext/packages
Wyatt Johnson b5d911c92c
[ppr] Don't mark RSC requests as /_next/data requests (#66249)
Old logic from the pages router was previously being hit during
development. This was more apparent when PPR was enabled as it was
mixing dynamic + static rendering in development which propagated to
errors. This change ensures that requests that are made with `RSC: 1`
are not marked as `/_next/data` URL's, and don't use the same logic
paths.

Previously it was a bit confusing because we used the variable
`isDataReq` in a few places that made it hard to tell what it was
referring to. In this case, the `isDataReq` is actually only used by the
pages router. This renames the `isDataReq` to `isNextDataRequest` to
make it clearer, as well as refactors to ensure that it's not used in
the paths for app routes.

Also to better represent the rendering modes the `supportsDynamicHTML`
variable was renamed to `supportsDynamicResponse`.

Fixes #66241
2024-05-28 07:53:04 -07:00
..
create-next-app v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
eslint-config-next v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
eslint-plugin-next v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
font v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next [ppr] Don't mark RSC requests as /_next/data requests (#66249) 2024-05-28 07:53:04 -07:00
next-bundle-analyzer v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next-codemod v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next-env v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next-mdx v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next-plugin-storybook v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next-polyfill-module v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next-polyfill-nomodule v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
next-swc v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
react-refresh-utils v14.3.0-canary.85 2024-05-27 23:23:34 +00:00
third-parties v14.3.0-canary.85 2024-05-27 23:23:34 +00:00