-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
[Bug]: Failed to render Async Component(RSC) with Next 15.1 #30033
Comments
A PR that seems to be relevant is #30068, but this change does not seem to have resolved this issue in my enviroment. I think fetch within components is a common use of RSC, but do few people confront this problem? |
also running into the same issue |
I'm using MSW to mock the requests in an awaited call inside an asynchronous component. I even see MSW reporting that the remote call was mocked out over and over. The component never actually renders even though via logging I can see the component makes its way through all the lifecycle. The async call is calling out to the Stripe sdk. |
It seems that the RSC rendering is just surrounded by Suspense, but it seems that I had thought of a patch like this, but because my understanding of the Storybook was poor, there were many cases where it did not work properly. However, in order to perform RSC rendering correctly, you will probably need to render using |
Describe the bug
After upgrading to Next 15.1, Storybook failed to render Async Component with Promise Function inside.
Since it works fine when reverting back to Next 15.0.4, I think it may be affected by the support for "React 19 Stable" that came in Next 15.1.
In this Reproduction, the Promise Function continues to be called several times before stopping with an error, but in the environment at hand, we have confirmed that the Promise Function used by the component continues to be called almost indefinitely.
Reproduction link
https://stackblitz.com/edit/sb-promise-loop-repro?file=src%2Fstories%2FTest.tsx
Reproduction steps
npx create-next-app@latest
npx sb init
System
Additional context
The same problem occurs on Chromatic, and not even an Error Message is displayed on Chromatic.
The text was updated successfully, but these errors were encountered: