Next.js Discord

Discord Forum

Parallel and intercepting routes

Unanswered
Beveren posted this in #help-forum
Open in Discord
Avatar
BeverenOP
in the /ticketing page i have 2 parallel routes, @ticketInfo and @stageInfo, the problem is every time i navigate to /ticketing the loading.ts file is being rendered 3 times at the same time, and is being displayed on the 3 times as you can see. If i remove a remove 1 parallel route ill get 2 loading and if i remove them both ill get only 1 loading which is the expected behavior. Also if i refresh /ticketing i only get 1 loading not 3. So how do i fix the loading when navigating to /ticketing?
Image

3 Replies

Avatar
BeverenOP
this is the folder structure for /ticketing
Image
Avatar
Shy Albatross
remove loading from the intercepting routes I guess?
if you're rendering both the stageInfo and ticketInfo slots in the layout at the same time, and they both intercept the same route, then they will both show up