Using a client-side promise on initial render hangs server stream #70371
Labels
bug
Issue was opened via the bug report template.
Lazy Loading
Related to Next.js Lazy Loading (e.g., `next/dynamic` or `React.lazy`).
Link to the code that reproduces this issue
https://github.com/mordechaim/promise-stream
To Reproduce
npm run dev
Current vs. Expected behavior
I use
use()
to resolve the promise in a client component. If the page is a full page load, the suspended component never "wakes up", the browser's loading indicator keeps spinning and the initial response body never completes.When building the application with
next build
it hangs as well, with the following error message:The behavior is not present if any of those is true:
Provide environment information
Which area(s) are affected? (Select all that apply)
Lazy Loading
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: