Duplicate Requests in Next.js 14 on Server Side with Parallel Routes and Intercepting Routes #66418
Labels
bug
Issue was opened via the bug report template.
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
Parallel & Intercepting Routes
Related to Parallel and/or Intercepting routes.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/nextjs-test-forked-rrpt2x?file=%2Fpackage.json%3A12%2C4-14%2C23
To Reproduce
use server
component that makes a request.npm run dev
).Additional details from discussion:
example
Current vs. Expected behavior
Current Behavior:
Requests in
use server
components are being duplicated when using parallel routes and intercepting routes in development mode.Expected Behavior:
Requests should only be made once, avoiding duplicates.
Provide environment information
Which area(s) are affected? (Select all that apply)
Developer Experience, Parallel & Intercepting Routes
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
I have encountered an issue where requests in
use server
components are being duplicated when using parallel routes and intercepting routes in Next.js 14. If I remove the @modal folder, the problem disappears. This suggests a bug related to parallel routes and intercepting routes in Next.js.Example discussion link: #66384
Steps to resolve suggested in the discussion, such as running in production mode, did not fix the issue.
The text was updated successfully, but these errors were encountered: