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
The view is not re-rendered on toolbar change #13791
Comments
It is because of this forceRender but then it causes this kind of problem. I don't really know how to overcome this without specific configuration 🤷♂️ an untested idea: |
@ThibaudAV I tried the untested idea but nothing happened, the component didn't reload. |
I noticed the same thing with vue. In the docs tab auto-reload works though. |
Same here, the "Docs" tab re-renders the component upon modifying the "globals" but the "Canvas" tab doesn't react to it. |
Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-alpha.7 containing PR #14226 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
The issue is still present, at least with Vue. The Vue component defined in the |
+1 Issue still in Vue latest version of Storybook 6.3.8. Solution for now is to include deprecated |
@william-will-angi Can you elaborate on this workaround for Vue and how to implement it in the meantime until this is fixed? |
@sarayourfriend We were using If you're determined to make it work with |
I saw that. I was actually able to get it working using a Thanks for the details though! |
I also have encountered this problem but with React Project, any workaround to solve this problem? other than including the |
@wes0310 For React you should be able to follow the pattern used by WordPress/Gutenberg here: https://github.com/WordPress/gutenberg/pull/35711/files#diff-493c10b62f2ed6d7c2a9945a55b58043b0f042c6b840f78c2193f8a01b2af613R15 Basically |
I tried using |
Anyone who is keeping up with this problem? |
I moved to using And then I've created a Vue decorator that listens for this event and re-renders the story accordingly:
|
@wes0310 it's a closed issue, I don't know much about this repository but maybe opening a new issue tagged for React with a reproduction repo would get more attention from the devs. |
This issue is open: #12840 |
Describe the bug
I have created a new toolbar button following the steps in the documentation, the button is for localization change, the problem is that the story won't re-render on globals change.
Expected behavior
I expect the page reloads as language is changed as it is in your official storybook
I am using
@ngx-translate/core
for managing the translations.System
The text was updated successfully, but these errors were encountered: