Lullabot / storybook-drupal-addon

Storybook addon to facilitate integrating Storybook with Drupal projects.
MIT License
42 stars 9 forks source link

Components reload multiple times when interacting with Storybook #21

Open e0ipso opened 2 years ago

e0ipso commented 2 years ago

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.

davidmoret commented 1 year ago

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