-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Suspense boundary broken (ignored) after second server action call #66431
Comments
I'm having similar issues.
This works as expected for me up to v14.2.0-canary.23, in v14.2.0-canary.24 I start to see issues. |
@kevinmitch14 I think this is a different issue. My Problem is regarding Suspense boundaries and not regarding loading.tsx. I suggest you open a new issue or start a discussion on this topic. |
When did the issues start to occur for you? Have you tried something before v14.2.0-canary.24? |
Jep, I have tested and it was present in v14.2.4 as well |
I have noticed it couple of month ago but never understood what is happening because of the hard way to reproduce it. But with the github example I linked above you can go back to older nextjs versions and reproduce it. |
A temporal workaround is to add a key to the suspense boundary which changes on every render. But this feels kinda strange and I'm unsure about the negative consequences it has:
|
v15.0.0-canary.14 has fixed a similar issue I was having from 14.2.2. |
Hey Luke, thanks for the hint. I have upgraded the example to |
Link to the code that reproduces this issue
https://github.com/trieb-work/nextjs-broken-suspense-bug-example
To Reproduce
pnpm dev
and open it in the browserIf starting the app in production mode (pnpm build + pnpm start) the same problem persists. Only difference will be that there is no loading page displayed first (due to static optimization). But this can also be disabled if page is opting out of static optimization.
Current vs. Expected behavior
Current:
Expected:
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 18.19.0 npm: 10.2.3 Yarn: 1.22.21 pnpm: 8.6.0 Relevant Packages: next: 15.0.0-canary.3 // Latest available version is detected (15.0.0-canary.3). eslint-config-next: N/A react: 19.0.0-rc-6f23540c7d-20240528 react-dom: 19.0.0-rc-6f23540c7d-20240528 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Navigation
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local), Vercel (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: