-
-
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
Storybook 6.0 children args break if value is empty #10856
Comments
@shilman did this get fixed? |
Not explicitly. But maybe ... there have been lots of improvements since this was filed. Can you provide a repro in |
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! |
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! |
Hi, Not sure if related but I saw the following issue. The following works and renders well: Card.args = {
children: 'Hello',
}; The following breaks: Card.args = {
children: <Paragraph>Hello</Paragraph>,
}; Results in:
import styled from '@emotion/styled';
export const Paragraph = styled.p`` Does that help with reproduction? 🙇 |
@cabello currently all arg values must be JSON-serializable values Related: #11429 @jonniebigodes i wonder whether there's a good documentation fix for this short term |
Though this works in React, this fails in Preact export const Multi = ({hint}) => <div>{hint}</div>
export const Template = (args) => (
<Multi
hint={args.hint}
/>
);
<Canvas>
<Story name="MultiBoy" args={{ hint: <div>hello</div> }}>
{Template.bind({})}
</Story>
</Canvas>
|
Arg values should be JSON serializable (ish) @maxzirps |
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 for lack of a reproduction. I wasn't able to break Storybook by nullifying a required arg. JSX is not supported as arg value. Use a |
Chore: update documentation to address issue #10856
Chore: update documentation to address issue #10856
Describe the bug
if I set my
children
arg to no value, the entire story breaks.The text was updated successfully, but these errors were encountered: