Skip to content
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

Components reload multiple times when interacting with Storybook #21

Open
e0ipso opened this issue Sep 12, 2022 · 1 comment
Open

Components reload multiple times when interacting with Storybook #21

e0ipso opened this issue Sep 12, 2022 · 1 comment
Assignees

Comments

@e0ipso
Copy link
Member

e0ipso commented Sep 12, 2022

It could be useful to throttle requests to the back-end so we don't overwhelm the server when rapid requests happen at the same time. However in my previous debugging, I have seen that the reloads are not coming from user-code in this repo, but from the Storybook app itself.


This code might be useful for debugging: https://github.com/storybookjs/storybook/tree/next/code/renderers/server

Maybe the flashes are caused by this call to simulateDOMContentLoaded() or simulatePageLoad().

Or maybe our fetchStoryHtml is causing this by remounting the DOM. I don't know what that means, but based on this comment it might be worth investigating.

@e0ipso e0ipso self-assigned this Sep 12, 2022
@e0ipso e0ipso changed the title Throttle requests to the backend Components reload multiple times when interacting with Storybook Mar 2, 2023
@davidmoret
Copy link

Hi,
I encounter a problem when I access via the side menu to a documentation page (only doc pages). The page reloads indefinitely and sometimes until the browser freezes.
I use version 7.0.26 of @storybook/server-webpack5, but I have same result with all 7+ versions I've test..
I have the same result on chrome and firefox.
Do you think it's the same problem?

infinite-reload-on-doc-page.webm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants