How to use error
and loading
in parallel routes in "app" dir ?
#49588
Replies: 10 comments 16 replies
-
Having the same problem. Did you find solution? |
Beta Was this translation helpful? Give feedback.
-
Related: |
Beta Was this translation helpful? Give feedback.
-
With 13.4.7 this bug is now fixed!! Closing this... |
Beta Was this translation helpful? Give feedback.
-
but I also have the same issue in next 13.5.* , even though everything works properly in 13.4.7. |
Beta Was this translation helpful? Give feedback.
-
Hey devs, this routing method works correctly in 13.4.7 but it seems the bug has re-appeared in 13.5^. Can we open this issue @tresorama ?? |
Beta Was this translation helpful? Give feedback.
-
Reopening this discussion because of this. |
Beta Was this translation helpful? Give feedback.
-
Testing with @NCSmit and @ivi3 |
Beta Was this translation helpful? Give feedback.
-
Problem in next15@rc! |
Beta Was this translation helpful? Give feedback.
-
All seems working as expected. For now I close it. |
Beta Was this translation helpful? Give feedback.
-
Still happening on nextjs 14.1.3 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i'm trying the "app" directory for first time following the official docs.
While testing "parallel routes" I wanted to test the error component.

Looking at this image in the Docs, it should be possible to render different
error
component (andloading
) for different parallel routes.I defined an
error.tsx
file inside each@folder
of a segment.Then I triggered a forced error (inside a
fetch
) , I expect to seesegment/@folder/error.tsx
rendered, but instead I seesegment/error.tsx
rendered.Same thing with
loading.tsx
, expectingsegment/@folder/loading.tsx
to be rendered and instead gotsegment/loading.tsx
.This prevent me to render different
error
component (andloading
) for different parallel routes, forcing me to have a sharederror
(andloading
) for the entire segment (that acts as parent for@folder
parallel routes)What i want is not possible ? Am I doing something wrong ?
Beta Was this translation helpful? Give feedback.
All reactions