nextjs - 💡(How to fix) Fix App Router: route groups prefetch cache should isolate parallel slots [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#92335Fetched 2026-04-08 02:43:23
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
subscribed ×1
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/pedrolucas167/next.js/tree/fix/app-router-route-groups-prefetch-cache

To Reproduce

  1. Open the linked repository and run the App Router route-group scenario used by the regression fix.
  2. Prefetch a route in one parallel slot / route group.
  3. Navigate away and use browser back/forward so the route cache is consulted.
  4. Observe whether the restored tree is isolated per parallel slot.

Current vs. Expected behavior

  • Current: route cache entries can be shared across route-group / parallel-slot contexts.
  • Expected: route cache entries should be isolated per parallel slot so back/forward restores the correct tree.

Additional context

This issue is related to a parallelSlot fix in the route cache key path. I’m linking my correction branch here for traceability.

extent analysis

TL;DR

The most likely fix involves updating the route cache key path to include the parallelSlot identifier to ensure isolation per parallel slot.

Guidance

  • Review the correction branch linked in the issue for the specific changes made to the route cache key path to include parallelSlot.
  • Verify that the parallelSlot identifier is correctly incorporated into the cache key to prevent sharing across route-group/parallel-slot contexts.
  • Test the scenario with the updated cache key to confirm that back/forward navigation restores the correct tree for each parallel slot.
  • Check for any potential cache key collisions or issues with the updated implementation.

Example

No explicit code example is provided due to the lack of specific code details in the issue, but the correction branch should contain the necessary changes.

Notes

The fix relies on correctly identifying and incorporating the parallelSlot in the route cache key path, which may require careful review of the cache implementation and the correction branch.

Recommendation

Apply the workaround by incorporating the parallelSlot identifier into the route cache key path, as this should isolate cache entries per parallel slot and resolve the issue with shared cache entries across contexts.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING