mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #791] [CLOSED] fix(app-router): preserve same-named parallel slots across layout levels #850
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#850
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/791
Author: @NathanDrake2406
Created: 4/8/2026
Status: ❌ Closed
Base:
main← Head:fix/bug1-slot-scope-collision📝 Commits (10+)
22e7e9cfix(app-router): preserve same-named parallel slots across layout levelsc1b5be2test(app-router): update slot collision assertions and snapshots94b22a6fix(app-router): resolve ambiguous same-name slot lookups3d9812brefactor(app-router): require slot wiring names86dd456Merge upstream/main into fix/bug1-slot-scope-collision7ccf8b2chore: trigger CI024911bUpdate packages/vinext/src/routing/app-router.tsb43fdc9Merge upstream/main into fix/bug1-slot-scope-collisionbc83785fix: use :: separator in slot keys to match origin3bddc54Merge origin/fix/bug1-slot-scope-collision📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/vinext/src/routing/app-router.ts(+1 -1)📄 Description
Summary
slotName + owner directory) instead of using onlyslot.nameWhy
When parent and child layouts both define
@modal, keying by name causes collisions and one slot silently overwrites the other. This drops one slot subtree and breaks layout behavior.Testing
vp check tests/routing.test.ts tests/app-page-route-wiring.test.ts tests/app-router.test.ts packages/vinext/src/routing/app-router.ts packages/vinext/src/entries/app-rsc-entry.ts packages/vinext/src/server/app-page-route-wiring.tsxvp test run tests/routing.test.ts tests/app-page-route-wiring.test.tsvp test run tests/app-router.test.ts -t "same-named parallel slots"vp test run tests/routing.test.ts tests/app-page-route-wiring.test.ts tests/app-router.test.ts -t "same-named parallel slots|preserves same-named parallel slots|renders same-named slot props"🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.