mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #811] [MERGED] Fix parallel slot persistence and cache variants #863
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#863
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/811
Author: @NathanDrake2406
Created: 4/10/2026
Status: ✅ Merged
Merged: 4/10/2026
Merged by: @james-elicx
Base:
main← Head:fix/parallel-slot-persistence-soft-nav📝 Commits (7)
5da3aa2Fix parallel slot persistence and cache variants8d8fbe1Address App Router review follow-ups203a430Fix generated mounted-slot regex escaping7304befAddress review feedback on slot normalization and cache comments7072036Remove redundant .map(trim) and clarify regen slot contextfd44d39Clarify regen dedup and prefetch slot-mismatch tradeoffs3ef5218Document storePrefetchResponse slot-awareness gap📊 Changes
14 files changed (+750 additions, -67 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+40 -3)📝
packages/vinext/src/server/app-browser-entry.ts(+25 -3)📝
packages/vinext/src/server/app-elements.ts(+25 -0)📝
packages/vinext/src/server/app-page-cache.ts(+43 -20)📝
packages/vinext/src/server/app-page-render.ts(+4 -1)📝
packages/vinext/src/server/app-page-response.ts(+4 -0)📝
packages/vinext/src/server/app-page-route-wiring.tsx(+20 -4)📝
packages/vinext/src/shims/link.tsx(+8 -1)📝
packages/vinext/src/shims/navigation.ts(+51 -6)📝
tests/__snapshots__/entry-templates.test.ts.snap(+240 -18)📝
tests/app-browser-entry.test.ts(+35 -0)📝
tests/app-page-cache.test.ts(+75 -11)📝
tests/app-page-route-wiring.test.ts(+136 -0)📝
tests/prefetch-cache.test.ts(+44 -0)📄 Description
Fixes bugs in slot components introduced in https://github.com/cloudflare/vinext/pull/750 that https://github.com/cloudflare/vinext/pull/752 caught
This tightens App Router slot behavior in three places:
default.tsxfallback behavior correctly on soft navigation by distinguishing already-mounted slots from first entry into a layoutVerification:
vp test run tests/app-page-cache.test.ts tests/prefetch-cache.test.ts tests/app-browser-entry.test.ts tests/app-page-route-wiring.test.tsvp test run tests/app-router.test.ts -t "generated code|ISR cache read fires|generated handler exports async function handler"vp test run tests/entry-templates.test.ts -uvp checkRisks:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.