Thanks to visit codestin.com
Credit goes to github.com

Skip to content

loading.js does not trigger on dynamic route navigation (within same dynamic route) #58153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
jel-massih opened this issue Nov 7, 2023 · 1 comment
Open
1 task done
Labels
bug Issue was opened via the bug report template. Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation. stale The issue has not seen recent activity.

Comments

@jel-massih
Copy link

Link to the code that reproduces this issue

https://github.com/jel-massih/loading-test

To Reproduce

  1. Start the application in Dev mode
  2. Navigate to /
  3. Click Dashboard (should show loading for 5s then dashboard)
  4. click Dynamic A (should show loading for 5s then Dynamic A)
  5. click Dynamic B (Will not show Loading, just "hangs" for 5s until dynamic B is loaded)

Current vs. Expected behavior

I expected step 5 to show Loading for 5s then Dynamic B, but the loading fallback is never shown.

It appears to be based off navigating to the same dynamic component (even though different route with different params)

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home
Binaries:
  Node: 20.7.0
  npm: N/A
  Yarn: N/A
  pnpm: 8.8.0
Relevant Packages:
  next: 14.0.1
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 4.9.5
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

App Router, Routing (next/router, next/navigation, next/link)

Additional context

No response

@jel-massih jel-massih added the bug Issue was opened via the bug report template. label Nov 7, 2023
@github-actions github-actions bot added the Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation. label Nov 7, 2023
@nextjs-bot
Copy link
Collaborator

This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.

@nextjs-bot nextjs-bot added the stale The issue has not seen recent activity. label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation. stale The issue has not seen recent activity.
Projects
None yet
Development

No branches or pull requests

2 participants