Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.8k
-
SummaryMaybe these are two separate issues
Anyone ran into something similar? Additional informationHere's a video of it: The error message in text: And here's the relevant part of the constpreview:Preview={ ...globalTypes:{mode:{defaultValue:"dark",toolbar:{title:"Mode",items:["light","dark"],dynamicTitle:true,},}, ...},decorators:[(Story,context)=>{return(<ThemeProvider...><Story/></ThemeProvider>);},],} Create a reproductionNo response |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 6 comments 5 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Found a related issue:#15659 Changing globals reloads the documentation pageThis is related to Changing globals fails in some cases
storybook/code/lib/channels/src/postmessage/index.ts Lines 218 to 219 in38dfc50
I'm not familiar with the code, so not sure why we need different logic on docs page and preview page. rawEvent.origin is always defined, but in that function the code looks for the source, which is not available sometimes. The strange part is that in some cases it works. A couple of components always work, others mostly fail, some fails in a way that changing the global doesn't even happen - which is the most frustrating part of this. (again, some of this is guessing)So if I change that like to event.source=rawEvent.origin; this issue goes away. Most probably there's a reason this needs to happen, but want to say that the issue is in |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello. I've ran into something similar. The same issue happens to me in docs pages with "larger" stories. It indeed seems to be some race condition since the issue happens more frequently when stories grow bigger. It also happens more frequently in development than in production builds. I've made areproduction repo and hosted it with Chromatichere. I have use Material-UI but I don't think that is the actual cause. It seems to happen without MUI as well as long the render phase of the story is long/heavy. |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 3
-
Thanks@nukemonk, awesome example. Referenced this in the related issue. |
BetaWas this translation helpful?Give feedback.
All reactions
🚀 1
-
Any news on this? Experiencing it on |
BetaWas this translation helpful?Give feedback.
All reactions
-
Doesn't seem like it, unfortunately |
BetaWas this translation helpful?Give feedback.
All reactions
-
I am having the same issue on 8.6.0 |
BetaWas this translation helpful?Give feedback.
All reactions
-
The issue still persists on Storybook 9.1.8. The only difference is that at least the selected value persists. So it does not sometimes use the old value anymore. |
BetaWas this translation helpful?Give feedback.
All reactions
-
@JuhG or anyone managed to solve it? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Never mind. I figured it out. |
BetaWas this translation helpful?Give feedback.
All reactions
-
hey@damisparks would you mind sharing what you've found? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Would also love to know if there's a workaround. Hitting the same problem with Storybook 10 and Tanstack Start |
BetaWas this translation helpful?Give feedback.

