Commits
Click on a commit to change the comparison rangefix: prevent duplicate RSC requests when navigation happens during inflight prefetch
When a prefetch is already in progress (Pending status), navigation was
immediately making a new RSC request instead of waiting for the prefetch
to complete. This caused duplicate requests when users clicked links
quickly after prefetch started.
This fix adds:
- Promise field to PendingRouteCacheEntry to track waiting navigation
- waitForRouteCacheEntry function to wait for pending prefetch completion
- Navigation logic to wait for inflight prefetch before making new request
- Test to verify only one request is made when prefetch is inflight
Fixes #86400