-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
setOptions resets to the defaults #5784
Comments
cc @tmeasday |
Wow I have zero memory of this code change but I can say it got completely refactored for 5.0. My guess is there is a bit of a tension here between the use case @theKashey has (where the initial state set via query parameters needs to stick around, i.e. the state needs to be stateful), and the I think I actually raised a similar point fairly recently with regards to the current v5 code so I'm not sure a solution has been found yet that satisfies both use cases. Do we want to try and fix in both branches? |
@shilman - I don't think so. I imagine that one has something to do with refactorings in the story store that @ndelangen has made. |
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! |
Closing this now that 5.0 is out. Please re-open if you're stuck on 4.x |
Describe the bug
setOptions(options)
would reset all not listed options to the default value.basically, new options got merged with default ones, not the current ones.
To Reproduce
Steps to reproduce the behavior:
.storybook/config.js
full=1
full=0
(default)Expected behavior
In 4-alpha it was working as expected, at the latest 4.1.12 it does not
Code snippets
If applicable, add code samples to help explain your problem.
https://github.com/storybooks/storybook/blob/master/lib/ui/src/modules/shortcuts/actions/shortcuts.js#L62-L65
this code was refactored in v5, and I am not sure is it a problem for the next branch.
Additional context
I need to open storybook fullscreen using a deep link.
The text was updated successfully, but these errors were encountered: