Next.js Discord

Discord Forum

Prefetching nested loading.tsx doesn't work

Unanswered
American Cocker Spaniel posted this in #help-forum
Open in Discord
American Cocker SpanielOP
I have a route set up like /users/(user)/loading.tsx. This loading.tsx isn't prefetched, but if I move the route to /users/loading.tsx, then loading.tsx is prefetched. I don't understand why this is happening. Is this expected behavior, or am I doing something dumb?

Here's the repo with code if that helps:
https://github.com/LoV432/ArchiveScape
https://github.com/LoV432/ArchiveScape/blob/master/app/users/(users)/loading.tsx

1 Reply

American Cocker SpanielOP