-
-
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
React-vite: Docgen HMR is broken #25471
Comments
If you extract the type declaration and then introduce it, the description will be modified and will not be updated until you restart the project. |
|
This is due to the HMR event being handled by the react-refresh plugin. Storybook depends on the HMR event being bubbled further up, however the react-refresh plugin catches the HMR, and doesn't let the event propagate. This causes storybook to not be aware of the module changing. So as of right now, when react-fast-refresh is enabled, storybook project annotations won't HMR. @vanessayuenn what do you think the best way forwards is for this ticket? |
Possibly related to #26881 @valentinpalkovic |
Describe the bug
Comments on jsdoc modification or type modification will not be hot updated
To Reproduce
No response
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: