-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Dynamic Layout with Suspense hangs after 2nd navigation in Next 15 #72060
Comments
On further investigation, the layout never reloads in As a workaround, I am able to remove the I still feel like this is a bug though, because the Loading UI and Streaming documentation seems to indicate that custom Suspense boundaries should work |
Hi, I've been experiencing the same bug and it's blocked our upgrade from 14 -> 15. EDIT: This does still repro with Original, invalid
|
Local bisecting lead to |
Locally, I can no longer reproduce it starting with |
Looks like it is still an issue, but only in the production bundle with I updated the versions, instructions, and screencasts in the reproduction repo |
That's what I also got. |
I'm encountering this in |
Validated that this is fixed in |
Link to the code that reproduces this issue
https://github.com/caleblloyd/next-layout-cache-bug/
To Reproduce
To Reproduce
Navigate to http://localhost:3000/now
Video of bug starting from Now Page
If you start at the Home Page things work fine
Navigate to http://localhost:3000
Video of things working starting from Home Page
Current vs. Expected behavior
I am using a layout in a subdirectory of the app router. It should be dynamic because I am using
export const dynamic = 'force-dynamic'
on the layout.If I load a page that uses this layout initially, then navigate away and navigate back, it gets stuck at the
Suspense
andLoadData
is never called again.next dev
has the static route indicator on the page upon navigating back.If I load a page that does not use this layout initially, I can navigate to a page using the layout multiple times and it works.
next dev
does not have the static route indicator on the page.Provide environment information
Operating System: Platform: linux Arch: x64 Version: #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 Available memory (MB): 15718 Available CPU cores: 4 Binaries: Node: 20.18.0 npm: 10.8.2 Yarn: N/A pnpm: 9.12.1 Relevant Packages: next: 15.0.3-canary.1 // Latest available version is detected (15.0.3-canary.1). eslint-config-next: 15.0.2 react: 19.0.0-rc-02c0e824-20241028 react-dom: 19.0.0-rc-02c0e824-20241028 typescript: 5.6.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: