Open e0ipso opened 2 years 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?
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()
orsimulatePageLoad()
.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.