default.tsx parallel routes are using the loading.tsx from the parent route instead of the one from the parallel route #65533
Labels
bug
Issue was opened via the bug report template.
Parallel & Intercepting Routes
Related to Parallel and/or Intercepting routes.
Link to the code that reproduces this issue
https://github.com/nuclei272/parallel-route-loading-ui-bug
To Reproduce
https://codesandbox.io/p/github/nuclei272/parallel-route-loading-ui-bug/main
.Current vs. Expected behavior
When you click to hard refresh, you'll see that the header and sidebar parallel routes (
@header
and@sidebar
) will incorrectly displays "Loading Children...", which is the loading.tsx on the parent route/
. The children page displays the loading.tsx correctly and the route/comments
is also displaying it correctly.The expected behaviour would be to loading the corresponding loading.tsx on
@header
and@sidebar
parallel routes as seen when we first load the page on the root route/
.Provide environment information
Which area(s) are affected? (Select all that apply)
Parallel & Intercepting Routes
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: