mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#500
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/349
Author: @james-elicx
Created: 3/8/2026
Status: ❌ Closed
Base:
main← Head:repro/issue-346-fallback-page-params📝 Commits (2)
79b59f7test: reproduce issue #346 — renderHTTPAccessFallbackPage drops params from layouts30daaf8fix: layout not getting correct params on 404📊 Changes
5 files changed (+113 additions, -12 deletions)
View changed files
📝
packages/vinext/src/server/app-dev-server.ts(+18 -12)➕
tests/fixtures/app-basic/app/nextjs-compat/not-found-params-layout/[lang]/layout.tsx(+25 -0)➕
tests/fixtures/app-basic/app/nextjs-compat/not-found-params-layout/[lang]/not-found.tsx(+8 -0)➕
tests/fixtures/app-basic/app/nextjs-compat/not-found-params-layout/[lang]/page.tsx(+8 -0)📝
tests/nextjs-compat/not-found.test.ts(+54 -0)📄 Description
Summary
Adds a failing test that reproduces #346: when a 404 is triggered under a dynamic
[lang]route segment,renderHTTPAccessFallbackPagepasses noparamsto layout components. This causes the scopednot-found.tsxboundary to be skipped entirely and the root not-found to render instead (or a crash if the layout doesn't guard againstundefinedparams).Failing tests
notFound() under dynamic [lang] layout passes params to layout (issue #346)— expects scoped "Not Found (params-layout)", gets root "404 - Page Not Found"RSC request: notFound() under dynamic [lang] layout passes params (issue #346)— same via.rscendpointWhat was added
tests/fixtures/app-basic/app/nextjs-compat/not-found-params-layout/[lang]/layout.tsx— destructureslangfromparams(the affected component type)page.tsx— simple page under the dynamic segmentnot-found.tsx— scoped fallback ("Not Found (params-layout)")tests/nextjs-compat/not-found.test.ts— sanity check (passes) + two failing regression testsNo fix is included; this PR exists to track the reproduction.
Closes #346
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.