mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #839] [MERGED] feat(app-router): emit per-layout flags in the RSC payload [2/6] #887
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#887
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/839
Author: @NathanDrake2406
Created: 4/14/2026
Status: ✅ Merged
Merged: 4/15/2026
Merged by: @james-elicx
Base:
main← Head:feat/pr-768-2-layout-flags-payload📝 Commits (3)
2d513dbfeat(app-router): emit per-layout flags in the RSC payload1825a63fix(app-elements): widen isAppElementsRecord narrowing and drop redundant clone57c5be3fix(app-router): clear leaked dynamic usage on layout probe errors📊 Changes
7 files changed (+612 additions, -5 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+17 -0)📝
packages/vinext/src/server/app-elements.ts(+73 -2)📝
packages/vinext/src/server/app-page-render.ts(+17 -3)📝
tests/__snapshots__/entry-templates.test.ts.snap(+102 -0)📝
tests/app-elements.test.ts(+141 -0)📝
tests/app-page-execution.test.ts(+45 -0)📝
tests/app-page-render.test.ts(+217 -0)📄 Description
Summary
PR 2 of 6 — restack of #768. Now rebased onto
mainafter #838 merged.Wires runtime layout classification through
renderAppPageLifecycleand attaches the resulting flags as__layoutFlagsin the outgoing RSC payload viabuildOutgoingAppPayload. Payload-shape helpers (withLayoutFlags,isAppElementsRecord,buildOutgoingAppPayload,AppOutgoingElements) live alongsidereadAppElementsMetadataso the write and read boundaries sit next to each other.No filtering yet; the outgoing element is always canonical. Filtering lands in PR 3.
Stack
[1/6] #838 — centralize request-derived page inputs✅ mergedTest plan
tests/app-elements.test.ts(28 tests)tests/app-page-render.test.ts(13 tests)tests/app-page-execution.test.ts(13 tests)tests/entry-templates.test.ts(22 tests, snapshot regenerated)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.