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

Fix default exports typed with React.FC docgen #10

Conversation

kasperpeulen
Copy link

@kasperpeulen kasperpeulen commented Apr 11, 2023

Fixes storybookjs/storybook#21898
Fixes storybookjs/storybook#21801

I added FunctionComponent to the list of expression that need to get the identifier name from displayName.
I guess this has recently changed upstream.

I also added some more tests, to make sure other ways to write default exports doesn't regress.

@kasperpeulen kasperpeulen requested a review from shilman April 11, 2023 09:13
@kasperpeulen kasperpeulen self-assigned this Apr 11, 2023
@kasperpeulen kasperpeulen merged commit 0c3f3b7 into storybookjs:debug-default-export Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants