#loading not showing in sub-folders

7 messages · Page 1 of 1 (latest)

dusky crag
#

Hi there guys, I'm have a few issues with loading.tsx

so i have
app/loading.tsx
app/(dashboard)/loading.tsx

i need the dashboard loading because my dashboard group has a layout.tsx which has a sidebar. so i just want to load the actual page (on the right side).
pages like:

  • app/(dashboard)/(both)/home/page.tsx
  • app/(dashboard)/(both)/leases/page.tsx
    works fine with the loading. however, pages in subfolder of these, like:
  • app/(dashboard)/(both)/home/leases/[leaseID]/page.tsx
    does not show the loading screen.

but if add another loading.tsx in:
app/(dashboard)/(both)/home/leases/[leaseID]/
then the loading shows.

i hope that makes sense 😂 reading it back is confusing me too. any help would be appreciated :)

paper cloudBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

dusky crag
#

it seems to be working on refreshes, just not on Link's

dusky crag
#

I'm not sure if this is a bug, or if I'm doing something completely wrong.

#

the issue seemed to be for all the dynamic pages

#

I think I was able to fix it for now, by adding a loading.tsx in the parent folders for each of the dynamic pags. it is a bit inconvenient though.

#

I was able to find some similar issues on the github repo, but i think my issue is slightly different than those