-
Notifications
You must be signed in to change notification settings - Fork 27k
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
generateStaticParams breaks intercepting routes #52880
Comments
I'm also able to reproduce this bug in production (Vercel). Repository details:
|
Mhmm, I feel like intercepting routes is a complete mess in its current state |
I'm experiencing the same issue but without using
next.js 14.0.1 |
|
@Neo-Ciber94 I am experiencing a similar issue. I have a modal with an intercepting route in it -
even though I do in fact export this function in the |
This comment has been minimized.
This comment has been minimized.
Happened to me too. But then I fixed it by exporting generateStaticParams from the page.tsx instead of layout.tsx. Seems like exporting generateStaticParams from layout breaks the intercepting route. |
+1 same issue! generateStaticParams in a layout breaks interception! |
Muchas gracias 🏄♂️ |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 Binaries: Node: 16.18.0 npm: 8.19.2 Yarn: 1.22.19 pnpm: 8.6.1 Relevant Packages: next: 13.4.11-canary.0 eslint-config-next: 13.4.9 react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.6 Next.js Config: output: N/A
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router
Link to the code that reproduces this issue or a replay of the bug
https://github.com/Netail/app-dir-intercept
To Reproduce
Describe the Bug
generateStaticParams
in the root layout prevents route intercepting, causing to render the actual page instead of the intercepted componentExpected Behavior
Display intercept component instead of the actual page
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: