mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #346] renderHTTPAccessFallbackPage does not pass params to layout components #79
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#79
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?
Originally created by @Jbithell on GitHub (Mar 8, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/346
renderHTTPAccessFallbackPagedoes not passparamsto layout componentsWhen vinext renders HTTP access fallback pages (404, 403, 401), layout components are rendered without the
paramsprop, causing layouts that destructure route params to crash with:Root cause
In the bundled output,
renderHTTPAccessFallbackPagecreates layout elements with only{ children }and noparams:The normal render path correctly passes params:
This affects both the RSC and non-RSC branches within
renderHTTPAccessFallbackPage.Reproduction
[lang]route segmentapp/[lang]/layout.tsx, destructurelangfromparams:/en/nonexistent-page)paramsisundefinedExpected behavior
renderHTTPAccessFallbackPageshould passparams: makeThenableParams(params)to layout components, matching the normal render path.Workaround
Add nullish coalescing when destructuring params in layouts:
Environment
^0.0.2215.5.2@james-elicx commented on GitHub (Mar 8, 2026):
I've had the fix for this sat in the big batch of fixes i made for another project. Slowly sifting through them this weekend and trying to make repros for each one before merging...