mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #507] [MERGED] fix: share ISR dedup maps across RSC/SSR environments via Symbol.for() #629
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#629
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/507
Author: @NathanDrake2406
Created: 3/12/2026
Status: ✅ Merged
Merged: 3/12/2026
Merged by: @james-elicx
Base:
main← Head:fix/isr-cache-cross-env-dedup📝 Commits (1)
0a43931fix: share ISR dedup maps across RSC/SSR environments via Symbol.for()📊 Changes
1 file changed (+14 additions, -3 deletions)
View changed files
📝
packages/vinext/src/server/isr-cache.ts(+14 -3)📄 Description
Summary
pendingRegenerationsandrevalidateDurationsinisr-cache.tswere plain module-levelMaps, giving each Vite environment (RSC, SSR) its own copySymbol.for()onglobalThisto share a single Map instance across environments, matching the pattern already used infetch-cache.tsSpotted during review of #498 — the fetch cache dedup PR correctly used
Symbol.for(), butisr-cache.tshad the same cross-environment sharing problem.Test plan
isr-cache.test.tstests pass (dedup, LRU eviction, waitUntil, error handling)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.