-
-
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
Theme is cached between unrelated instances #6587
Comments
Automention: Hey @domyen, you've been tagged! Can you give a hand here? |
I'm having a similar issue where I tested to create and apply a theme to my current project. At the end, I removed it but the change that I made are still there in |
An ugly workaround... In browser dev console:
|
Oh didn't know that the theme was stored in |
@mickaelzhang I believe that if we didn't cache it, Storybook would show up with the default theme while it loads and then switch to configured theme after a second or two. With caching, it immediately shows the user-configured theme, and then updates after the configuration loads (tho it seems like that part is broken). Maybe @ndelangen can comment more |
@shilman Oh right, it make sense ! It might be due to the fact that I'm using the default theme so no update is done after loading the theme from |
That's a good thought @mickaelzhang -- I bet that's it! @ndelangen is that an easy fix? |
@shilman @mickaelzhang If no theme is set at all, then I don't know a good fix really... Here's a concept though: |
This relates to #6806 |
The best way to fix this right now, if to always set a theme, even if using the default one. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
This issue is still happening to me with Storybook 5.2.5, the brand logo is being cached after removing a custom theme. To Reproduce
|
@ndelangen is working on a solution in 5.3! 🎉 |
This is still happening for me in storybook v5.3.18 |
I believe this is fixed in 6.0-alpha. |
I'm facing this issue right now on 6.1.3 |
I figured out to fix this removing |
On version 6.1.21, faced the same problem and having no luck with the |
Describe the bug
When running multiple Storybook projects, the logo from one project is shown in another. Investigation shows that the logo URL is stored in
@storybook/ui/store
in LocalStorage, which explains why this happens.To Reproduce
Steps to reproduce the behavior:
brandImage
and run it locally.Expected behavior
The second project should show the default Storybook logo.
System:
Mac OS, Chrome
The text was updated successfully, but these errors were encountered: