Replies: 2 comments 3 replies
-
Where is this hosted? Some servers have buffering enabled, which AFAIK, collects all chunks of data sent by the server and only when all chunks are collected, forwards them to the client. I think there's a chrome extension, Claire, which can tell you if the app is at least, served over HTTP2. That might be good to start debugging. This doesn't happen is you build the app, and run it locally right? In production mode but in your computer. |
Beta Was this translation helpful? Give feedback.
-
I’m running into the same problem. I deployed my app on Amplify, and it seems the issue is related to Amplify hosting. At the moment, it doesn’t fully support or isn’t very stable with Next.js streaming. This feature is still under consideration for support and development. If you’re using this host instead of Vercel, you can check the current status and discussion here |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am running into a weird issue where my suspense works locally but does not work in production. When I visit my webapp locally everything is working as expected - the area outside the suspense (header, footer, etc) loads in right away while the area inside the suspense displays my spinner while waiting for the backend to send the data over. I am using "key" for my suspense and using my searchParams as for the key.
However, when I deploy the webapp to production, when visiting the webapp it does not load at all until the entire call to the backend is complete. My webapp does not get displayed at all until everything is done loading.
The even weirder part is that I can run the build command on my webapp locally and run it and it works as expected. It's only when the built webapp is up on my production environment that this occurs.
Here is a video comparing local to production just to make it clear
nextjshelp.mp4
Here is some excerpts from my code where the suspense is set up.
Thank you very much!
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions