-
-
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]: Infinite re-render for async RSC stories #30317
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically
|
Upon further testing, it seems to be happening on older versions (~8.4.7) as well for this specific minimal repro 🤔 For the best context on my original concern, the way I discovered it is by experimenting with the issue outlined here on the newest release of Storybook: amannn/next-intl#771 (reply in thread).
In this specific example, both Hence me opening this issue. There is probably a lot more underground currents here re: RSC/Suspense/etc that I am not seeing, so just trying to provide as much info as possible to help isolate and troubleshoot here. |
Hi @dmitrc, Thanks for posting the issue. I read through the |
Thanks @valentinpalkovic,
Also added some other components to play around with, including async no await and fake await (actually sync). Please let me know if I can clarify anything further or help in any way!
|
Describe the bug
There was always some funkiness around using
await
in RSC story renders in Storybook (eg see amannn/next-intl#771 (comment)), but in the version 8.5.0+ the behavior has changed for the worse.Now if I have a server component with
await
in it, some recent change on the Storybook side seems to be causing an infinite render. It's a bit tricky to point out what factor exactly causes this, as in my isolated repro even a singleawait
is enough to trigger it, whereas in my actual codebase it only seems to happen when there are 2+.Reproduction link
https://github.com/dmitrc/storybook-repro
Reproduction steps
Or setup from scratch:
.storybook/main.ts:
page.tsx:
ServerComponentWithOneAwait.stories.tsx:
System
Additional context
No response
The text was updated successfully, but these errors were encountered: