fix(pages): clear fallback route params before hydration#2567
fix(pages): clear fallback route params before hydration#2567james-elicx wants to merge 3 commits into
Conversation
commit: |
|
Performance benchmarksCompared 0 improved · 1 regressed · 5 within ±1.5%
View detailed results and traces 🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head |
|
/bigbonk review for issues |
|
UnknownError: "Overloaded" |
|
@james-elicx Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
|
/bigbonk review for issues |
|
UnknownError: "Overloaded" |
|
/bigbonk review for issues |
|
UnknownError: "Overloaded" |
|
/bigbonk review for issues |
|
UnknownError: "Overloaded" |
|
/bigbonk review for issues |
/bigbonk reviewReviewed the fallback route-params query clearing. Verified behavior against Next.js canary ( What I verifiedNext.js parity is accurate. The Next.js
That test runs in production ( Dev/prod parity is maintained. Both request paths clear the fallback render query consistently:
The client commits real params after hydration (the other half of the contract).
Notes (non-blocking)
Local validation
LGTM. |
|
Review posted to PR #2567. SummaryI reviewed PR #2567 ( Key findings
ValidationRan all relevant targeted tests locally (pages-page-response, pages-page-data, shims fallback test, pages-router fallback tests, features, pages-page-handler) — all passing — plus |
…ack-route-params-28938793088
|
/bigbonk review for issues |
/bigbonk reviewReviewed the fallback route-params query-clearing change against Next.js canary. The core change is correct and matches Next.js observable behavior in dev, prod, and Worker paths. No blocking issues. One minor, non-blocking parity note below. What I verifiedThe empty-query reset is NOT dev-only in Next.js. No Dev/prod/Worker parity holds. Prod and Worker both route through
Client commits real params post-hydration. The
Non-blocking note
Validation
LGTM. |
|
Review posted to PR #2567. SummaryI reviewed PR #2567 ( Key findings
Validated with the fallback-focused test files (39 tests passing). |
|
Independent Codex review — NO FINDINGS Reviewed exact head |
Summary
_app, page, and_documentrendering__NEXT_DATA__.queryfor fallback shells across dev, production, and Worker request paths_hreplace fetches page data and commits the concrete route paramsNext.js parity
Ported from Next.js
v16.3.0-canary.80(9dd6d677b63b249584c8ff0bccffcc6a65288683):test/e2e/fallback-route-params/fallback-route-params.test.tspackages/next/src/server/render.tsx— fallback renders clearquerypackages/next/src/client/index.tsx— fallback hydration performs a non-shallow router replaceValidation
vp test run tests/pages-page-data.test.ts tests/pages-page-response.test.ts tests/pages-page-handler.test.ts— 131 passedvp test run tests/pages-router.test.ts -t "fallback shell|fallback: true"— 6 passedvp test run tests/shims.test.ts -t "keeps fallback route params empty until hydration data commits"— 1 passedvp checkfor all 9 touched files — cleanvp run vinext#build— passedtest/e2e/fallback-route-params/fallback-route-params.test.ts— 2 passed__NEXT_DATA__.queryis empty{ slug: "second" }Run source:
28938793088.