-
-
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
Values Bleeding Between Stories #794
Comments
Comment by arunoda @philcockfield may be that's something with RN. |
Comment by arunoda @philcockfield we have looked into this it's RN only. That's not the case in RN. We don't do that. I hope @roonyh could something about this today or tomorrow. |
Comment by roonyh @philcockfield I just published rn-storybook v2.1.4 with the fix in storybook-eol/react-native-storybook#104. It makes sure that a story is mounted completely. This should probably fix the issues you describe. Could you try updating rn-storybook to 2.1.4 and try it out? |
Comment by wordofchristian I can confirm this occurs with react web as well, not just react native. The query strings seem to persist when switching between stories. It also continues to show the knobs from the previous story on the new one (even if the new story doesn't have any knobs). This creates a confusing UI experience. Perhaps I'm experiencing a different issue than the one you're describing |
Comment by ChristopherBiscardi @wordofchristian I'm also seeing this (on web) due to the lack of clearing the query params |
Comment by wordofchristian @ChristopherBiscardi I was able to partially solve it by adding the import { addDecorator } from '@kadira/storybook';
import { withKnobs } from '@kadira/storybook-addon-knobs';
// add global knobs decorator to fix issue of persistent values between stories
addDecorator(withKnobs); |
Comment by sbaggott This is definitely an issue with react web. We are using the withKnobs decorator in our code, but it doesn't prevent the issue with persistent values in the query strings. |
I have an issue that seems related, but might not be... I have a Button component that has a caption property in its own Story. When I create a different component that implements this button I cannot override the original Knob in its Story.
This last ButtonWithCancel will display My Button and not Save |
I am also having the same issue... I've only noticed it on components which are connected though, so I though that might be something to do with it. |
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 60 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! |
Issue by philcockfield
Tuesday Oct 04, 2016 at 19:25 GMT
Originally opened as storybook-eol/storybook-addon-knobs#55
I have two stories that load two different components that both have a
size
property.If I have a knob for setting that size like so:
When I load component-2, I'm seeing the component-1 value of 60.
This is on ReactNative, not sure if that makes a difference. Also, possibly related to this, there is a little bit of weirdness when jumping between stories with the knobs panel not re-rendering to represent the currently loaded stories knobs settings.
Thanks guys!
The text was updated successfully, but these errors were encountered: