Next.js Discord

Discord Forum

Parallel route default loading

Unanswered
Gazami crab posted this in #help-forum
Open in Discord
Gazami crabOP
I experience that a parallel route with a catchAll route that renders a server component does not get wrapped with loading.tsx. Is this intentional, a bug or am I doing something wrong?

This is pretty much my setup:
@example
  [...paths]
    page.tsx -> ../page
  default.tsx -> ../page
  page.tsx -> <SlowAsyncServerComponent />
  loading.tsx -> <div>loading</div>


When navigating between different pages under the layout that renders @example there is a delay for as long as <SlowAsyncServerComponent> takes to render, and loading.tsx is never displayed.

0 Replies