rsnext/test/e2e
Andrew Clark 8ae1167c53
[PPR Nav] Fix: Page data should always be applied (#60242)
This fixes a case in the PPR navigations implementation where page data
was not being applied.

During a navigation, we compare the route trees of the old and new pages
to determine which layouts are shared. If the segment keys of two
layouts are the same, they are reused.

However, the server doesn't bother to assign segment keys to the leaf
segments (which we refer to as "page" segments) because they are never
part of a shared layout. It assigns all of them a special constant
(`__PAGE__`).

In the PPR implementation, I overlooked this and compared the segment
keys of all segments, including pages, not just shared layouts. So if
the only thing that changed during a navigation was the page data, and
not any parent layout, the client would fail to apply the navigation.

The fix is to add a special case for page segments before comparing
nested layouts. I also moved an existing special case for default pages,
since those are also leaf segments and are conceptually similar.
2024-01-04 18:33:43 -05:00
..
404-page-router fix(turbopack): e2e/404-page-router test (#58146) 2023-11-22 19:30:26 +01:00
app-dir [PPR Nav] Fix: Page data should always be applied (#60242) 2024-01-04 18:33:43 -05:00
app-dir-legacy-edge-runtime-config fix(DX): More precise error messages for export const config deprecation (#54492) 2023-08-25 16:25:15 +00:00
basepath Add initial separated route resolving (#47208) 2023-04-02 15:17:15 +02:00
browserslist Remove experimental.legacyBrowsers as it is stable (#54718) 2023-08-29 22:31:06 +02:00
browserslist-extends
cancel-request Try to fix flakey socket hang up failures in stream cancel tests (#53318) 2023-07-28 22:59:24 +00:00
children-page fix: pages not visible in dev when named children (#54007) 2023-08-15 03:50:37 +00:00
config-promise-export
config-schema-check Polish compiling and turbopack logging (#57270) 2023-10-23 19:28:36 +00:00
conflicting-app-page-error Hot reload when conflicted pages detected and when conflicts are resolved (#51516) 2023-06-22 22:32:14 +00:00
custom-app-render Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
disable-js-preload Enable App Router for all applications (#49088) 2023-05-04 17:47:10 +02:00
dynamic-route-interpolation fix: support both decoded and encoded url requests of conventioned files (#56187) 2023-10-03 00:02:49 +02:00
edge-api-endpoints-can-receive-body feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
edge-async-local-storage feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
edge-can-read-request-body chore: drop form-data (#57141) 2023-10-20 19:25:42 +00:00
edge-can-use-wasm-files feat: enables 'edge' as a possible runtime for API routes (#44045) 2022-12-15 10:08:03 +01:00
edge-compiler-can-import-blob-assets feat: drop Node.js 16 (#56896) 2023-10-16 21:41:38 +00:00
edge-compiler-module-exports-preference test(integration): fix --turbo tests fixture setup (#55293) 2023-09-18 17:46:07 +00:00
edge-configurable-runtime Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
edge-pages-support test: add case for marking _document with edge runtime (#54316) 2023-08-21 20:56:46 +00:00
edge-runtime-pages-api-route Fix issue with outputFileTracingExcludes and pages/api edge runtime (#59157) 2023-12-15 16:27:03 +01:00
edge-runtime-uses-edge-light-import-specifier-for-packages test(integration): fix --turbo tests fixture setup (#55293) 2023-09-18 17:46:07 +00:00
favicon-short-circuit Short circut 404's for /favicon.ico in development (#54747) 2023-08-30 16:15:19 +00:00
fetch-failures-have-good-stack-traces-in-edge-runtime Fix fetch stack test on deploy 2023-01-27 18:23:27 -08:00
getserversideprops server: re-land bundled runtimes (#55139) 2023-09-08 16:05:29 +00:00
handle-non-hoisted-swc-helpers Update swc_core to v0.75.23 (#48098) 2023-04-18 08:59:52 +02:00
hello-world Bail out of 404 page when favicon.ico doesn't exist (#50795) 2023-06-06 10:58:40 +02:00
i18n-api-support
i18n-data-fetching-redirect BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
i18n-data-route Strip internal routing headers (#55114) 2023-09-07 22:08:53 +00:00
i18n-default-locale-redirect Handle defaultLocale on client router filter (#47180) 2023-03-16 11:58:02 -07:00
i18n-disallow-multiple-locales Update failing i18n e2e deploy test (#47462) 2023-03-23 15:53:14 -07:00
i18n-ignore-redirect-source-locale
i18n-ignore-rewrite-source-locale Skip i18n-ignore-rewrite-basepath-source irrelevant tests with turbopack (#57295) 2023-10-23 15:01:24 -07:00
ignore-invalid-popstateevent Move core files to src folder and move JS files to TypeScript (#44405) 2023-01-03 10:05:50 +01:00
instrumentation-hook Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
instrumentation-hook-src add support for instrumentation (#59070) 2023-11-29 20:01:38 +01:00
link-with-api-rewrite BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
manual-client-base-path Update manual basePath with trailingSlash (#51726) 2023-06-23 15:36:16 -07:00
middleware-base-path BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
middleware-custom-matchers Add initial separated route resolving (#47208) 2023-04-02 15:17:15 +02:00
middleware-custom-matchers-basepath Add initial separated route resolving (#47208) 2023-04-02 15:17:15 +02:00
middleware-custom-matchers-i18n Add initial separated route resolving (#47208) 2023-04-02 15:17:15 +02:00
middleware-dynamic-basepath-matcher chore: fix flaky middleware matcher test (#49555) 2023-05-09 22:37:03 +00:00
middleware-fetches-with-any-http-method
middleware-fetches-with-body Revert "Revert "Separate routing code from render servers (#52492)"" (#53029) 2023-07-21 14:02:52 -07:00
middleware-general Fix middleware-general test for Turbopack (#56211) 2023-09-29 15:46:14 +00:00
middleware-matcher BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
middleware-redirects Update client router filter to separate redirects handling (#46752) 2023-03-03 16:02:02 -08:00
middleware-request-header-overrides type check tests (and convert next-test-utils.js to ts) (#51071) 2023-06-23 17:42:50 +00:00
middleware-responses Enable allowMiddlewareResponseBody by default (#44224) 2022-12-21 18:40:58 +00:00
middleware-rewrites Improve performance of String.prototype.split uses (#56746) 2023-10-19 00:25:15 +00:00
middleware-shallow-link Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
middleware-trailing-slash Allow next/headers in middleware & draftMode in edge runtime (#53465) 2023-08-02 20:22:35 +00:00
module-layer Revert "Apply react-server transform and valication to middleware (#5… (#57504) 2023-10-26 05:29:49 -07:00
multi-zone fix hmr in multi-zone handling (#59307) 2023-12-06 12:15:42 -08:00
new-link-behavior Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
next-font fix: cache next font during development to avoid FOUC (#60175) 2024-01-04 08:54:23 +00:00
next-head Ensure tests suites have unique names (#56085) 2023-09-27 13:55:45 +02:00
next-image-forward-ref Add ref forwarding for next/image (#43193) 2022-11-25 15:08:50 +00:00
next-script Skip experimental.nextScriptWorkers test for Turbopack (#56086) 2023-09-27 13:58:11 +02:00
no-eslint-warn-with-no-eslint-config
nonce-head-manager Ensure tests suites have unique names (#56085) 2023-09-27 13:55:45 +02:00
og-api Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
opentelemetry OpenTelemetry: propagate a configured context(s) to root requests (#57084) 2023-10-27 14:10:15 -07:00
optimized-loading Enable App Router for all applications (#49088) 2023-05-04 17:47:10 +02:00
pages-performance-mark Fix performance measures crashing the app (#54858) 2023-09-01 14:51:38 +00:00
postcss-config-cjs
prerender chore: show large data warning once per page on prod (#46323) 2023-02-25 12:29:59 -08:00
prerender-native-module
proxy-request-with-middleware Add initial separated route resolving (#47208) 2023-04-02 15:17:15 +02:00
react-dnd-compile Failing test for 59195 (#59210) 2023-12-04 05:13:28 +01:00
reload-scroll-backforward-restoration BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
repeated-forward-slashes-error Add page path to repeated slashes in href error (#46557) 2023-03-01 00:10:11 -08:00
skip-trailing-slash-redirect Use consistent name for App Router tests (#56352) 2023-10-06 11:06:06 +02:00
socket-io Fix unmatched WebSocket upgrade requests being closed (#57245) 2023-10-23 17:23:34 +00:00
ssr-react-context
streaming-ssr Remove installCommand on streaming-ssr test (#58037) 2023-11-05 13:30:12 +01:00
styled-jsx test(next-dev): migrate styled-jsx integration test (#55079) 2023-09-07 02:51:20 +00:00
swc-warnings Update tests for Turbopack (#59354) 2023-12-07 15:03:44 +01:00
switchable-runtime Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
test-template/{{ toFileName name }} Change test template to use TS and improve template for app-dir (#44227) 2023-01-06 20:36:47 +00:00
test-utils-tests/basic Cache package lock when running tests to speed up installation (#44520) 2023-01-03 11:55:28 +01:00
testmode Testmode: support edge functions inside a sandbox (#59179) 2023-12-04 16:47:34 -08:00
third-parties Adding Google analytics to next/third-parties (#58418) 2023-12-11 18:21:32 +00:00
trailingslash-with-rewrite fix: properly handle trailingSlash: true and rewrites (#43641) 2022-12-02 22:04:36 -08:00
transpile-packages build: don't error when bundling optional peer deps (#57073) 2023-10-20 00:57:06 +00:00
type-module-interop Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
typescript-version-no-warning Bump to typescript@5.1 (#50557) 2023-06-08 17:18:37 +00:00
typescript-version-warning Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
undici-fetch feat: make enableUndici: true default and remove node-fetch (#49061) 2023-05-02 04:10:59 +00:00
yarn-pnp/test Revert "Implement new forking technique for vendored packages. (#51083)" (#53640) 2023-08-06 13:00:12 -07:00
basepath-trailing-slash.test.ts
basepath.test.ts Update some flakey test cases (#43247) 2022-11-22 09:50:03 -08:00
example-file.txt Update pnpm new-test to use createNextDescribe (#44147) 2022-12-19 20:08:50 +01:00
example.txt Fix test template example (#44170) 2022-12-19 16:31:28 -08:00
prerender-crawler.test.ts
prerender-native-module.test.ts server: re-land bundled runtimes (#55139) 2023-09-08 16:05:29 +00:00
prerender.test.ts server: re-land bundled runtimes (#55139) 2023-09-08 16:05:29 +00:00