mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #838] [MERGED] refactor(app-rsc-entry): centralize request-derived page inputs [1/6] #886
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#886
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/838
Author: @NathanDrake2406
Created: 4/14/2026
Status: ✅ Merged
Merged: 4/14/2026
Merged by: @james-elicx
Base:
main← Head:feat/pr-768-1-page-inputs-refactor📝 Commits (1)
431df18refactor(app-rsc-entry): centralize request-derived page inputs📊 Changes
2 files changed (+343 additions, -154 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+49 -22)📝
tests/__snapshots__/entry-templates.test.ts.snap(+294 -132)📄 Description
Summary
PR 1 of 6 — restack of #768. Pure refactor, no behavior change. Reshapes
buildPageElementsto take a singlepageRequestobject and lifts thex-vinext-mounted-slotsheader read to handler scope so every call site shares one source of truth.Previously, both the handler and
buildPageElementsread and normalizedx-vinext-mounted-slotsindependently. A future refactor changing only one of those paths would silently drift. This PR collapses the two reads into one at the handler scope and passes the normalized value through thepageRequestbag.Stack (in order)
Sibling: #837 (chore: shim error boundary import).
Test plan
vp test run tests/entry-templates.test.ts tests/app-router.test.ts(327 tests)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.