Next.js suspense server-side doesn't work #69514
Replies: 1 comment
-
found any solution? it's still not working |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'm encountering an issue with Next.js 14. I want to load an Async component in the Page component. In the component, I simulate a server delay of 5 seconds. However, what happens is that I end up waiting for 5 seconds for the entire page to load, not just the component
Page component: app/page.tsx
ItemList component: app/ItemList.tsx
Additionally, after running npm run build, with npm run start the page rendering is immediate and complete; there's not even any waiting time for the Promise anymore...
Can I get some guidance on how to preload the Page and then load the afterward? Preferably without resorting to the client-side
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions