Skip to content
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

Props slot not render right in Stories when use optional chain in component #7981

Closed
guigueb opened this issue Mar 4, 2021 · 0 comments · Fixed by #7982
Closed

Props slot not render right in Stories when use optional chain in component #7981

guigueb opened this issue Mar 4, 2021 · 0 comments · Fixed by #7982
Assignees

Comments

@guigueb
Copy link
Contributor

guigueb commented Mar 4, 2021

I ran into this issue updating the CodeSnippet Story.
As the title says "Props slot not render right in Stories when use optional chain in component".

@tay1orjones found this Storybook issue that pretty much sums it up...
storybookjs/storybook#11883 (edited)

Looks like we just need to update our Storybook version.

This came from a slack discussion...
Would anyone know how to address the issue with Storybook not working well with optional chaining in the source?
The extraction and displaying of props in the Storybook => Docs => ‘Component API’ is failing when the source has optional chaining.
ie: CodeSnippet.js has a number of lines that use optional chaining (like lines 76, 77, etc) which stop the Component API prop generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants