-
-
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
React: Set react-docgen
to default TS docgen
#24165
Conversation
react-docgen
as default docgen
I'm curious what is the foundational difference between |
@csantos1113 But those |
@shilman can this PR proceed? |
Not yet. There are still some chromatic diffs that I'd like to investigate. @ndelangen |
@ndelangen - Thanks for the reply; I changed it to left is Sorry for hijacking this PR with this question, I could also open a issue about this topic, but I think it's sort of relevant for this PR because the default behavior will change in SB 8.0, if we make |
@csantos1113 Can you tell us with which Storybook version you have tried this and whether you are using a webpack5 or vite based project? |
Certainly @valentinpalkovic !
Here a simplified code example:
|
@csantos1113 Thank you so much for raising this. It's exactly the kind of feedback we're looking for. I've confirmed that this is indeed a bug in This looks like a common case -- my guess is there will be a few high priority bugs like this and fixing them will give us an 80/20 solution. We will rely on the community to fix them and intervene to fix ourselves if that doesn't happen quickly enough. Then there will be a long tail of corner cases that we probably won't address. I see |
react-docgen
to default docgenreact-docgen
to default TS docgen
Telescopes on #23825
What I did
Set
react-docgen
as the default so we can look at Chromatic diffs easily. Won't merge until:React.FC
is probably a deal-breakerAlso needs:
Checklist for Contributors
Testing
🦋 Canary release
This pull request has been released as version
0.0.0-pr-24165-sha-acaa9f93
. Install it by pinning all your Storybook dependencies to that version.More information
0.0.0-pr-24165-sha-acaa9f93
shilman/default-to-react-docgen
acaa9f93
1698046990
)To request a new release of this pull request, mention the
@storybookjs/core
team.core team members can create a new canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=24165