rsnext/test
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
..
.stats-app Update React from 81c5ff2e04 to f994737d14 (#66093) 2024-05-22 19:34:06 -07:00
development Update React from 81c5ff2e04 to f994737d14 (#66093) 2024-05-22 19:34:06 -07:00
e2e [ppr] Don't mark RSC requests as /_next/data requests (#66249) 2024-05-28 07:53:04 -07:00
examples Replace createNextDescribe with nextTestSetup (#64817) 2024-04-25 12:06:12 -06:00
integration Bump React types to 19 rc (#66186) 2024-05-27 16:19:41 +00:00
lib Update React from 81c5ff2e04 to f994737d14 (#66093) 2024-05-22 19:34:06 -07:00
production Revert "Don't fail the build if @types/ packages appear to be missing" (#66130) 2024-05-23 09:01:10 -05:00
unit Update turbopack & swc_core (#65450) 2024-05-17 20:15:51 +02:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-build-tests-manifest.js Ensure production integration test results are uploaded (#63706) 2024-03-26 10:41:16 +01:00
build-turbopack-dev-tests-manifest.js Rename turbopack-tests-manifest to turbopack-dev-tests-manifest (#63409) 2024-03-19 10:26:14 +01:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
get-test-filter.js run tests from test suite that are not listed in the manifest (#58401) 2024-01-11 07:38:35 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json [Breaking] disable client router cache for page segments (#66039) 2024-05-21 13:54:23 -07:00
readme.md
related-tests-manifest.json Reapply "chore(test): run related E2E deploy tests on PRs" (#64682) (#64712) 2024-04-19 11:02:43 +02:00
test-file.txt
turbopack-build-tests-manifest.json Ensure metadata routes dont skip static optimization (#66097) 2024-05-22 21:53:58 +00:00
turbopack-dev-examples-manifest.json Fix last examples for Turbopack (#64020) 2024-04-03 16:02:52 +02:00
turbopack-dev-tests-manifest.json [Breaking] disable client router cache for page segments (#66039) 2024-05-21 13:54:23 -07:00

See Testing for more information on how you can run/write/debug tests for Next.js.