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
Composition: Rename disabled
parameter => disable
#12603
Conversation
@g1eny0ung thanks for putting this PR together! 🙏 @g1eny0ung @ndelangen I think this is a bug in the code, not in the documentation. We use |
@shilman I agree. I doubt a lot of people will be affected if we change this in a minor/patch release. Do we risk it? |
@shilman I also agree with u. But like @ndelangen says, changing the source code is likely to affect many people. So I'm not sure, should I update the pr to change the source or still keep the current doc changes? |
How about we support both but issue a deprecation warning if users use Here's an example of how we do that for https://github.com/storybookjs/storybook/blob/next/addons/docs/src/blocks/DocsStory.tsx#L29-L35 |
Good idea. I will update the changes later. |
@shilman PTAL. Also, I tried to update the migration doc. If there is something wrong, please help me to point out. Very thx.~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @g1eny0ung 💯
disabled
parameter => disable
Issue:
https://storybook.js.org/docs/react/workflows/package-composition#configuring
After checking the source: https://github.com/storybookjs/storybook/blob/next/lib/core/src/server/manager/manager-config.js#L81, this should be a typo.
What I did
Changedisable
todisabled
.Deprecate the
disabled
parameter.How to test
If your answer is yes to any of these, please make sure to include it in your PR.