-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Vue3: Support multiple setup functions #22170
Conversation
…chaks/vue3-setup-functions
…chaks/vue3-setup-functions
…chaks/vue3-setup-functions
…chaks/vue3-setup-functions
…chaks/vue3-setup-functions
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.
i don't like !, or ts-ignore but sometime i can't find solution so that it will be my last solution to fix type check
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.
these changes look great, a few minor suggestions.
Co-authored-by: Jeppe Reinhold <jeppe@chromatic.com>
…bookjs/storybook into chaks/vue3-setup-functions
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! added a few minor comments, and there's still one question from previously you haven't resolved yet.
@JReinhold is all green now. |
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.
Changes look good from me, but I think @kasperpeulen should have a chance of reviewing it before it's merged.
You also haven't answered my comment here, you've just resolved it: https://github.com/storybookjs/storybook/pull/22170/files#r1173060551
can you tell me why my assumption is maybe wrong?
also i don't see why Kasper should review this as he does not have any context of this feature he was not in the Big Thread in Discord i guess @shilman is the one able to review this, we had a big discussion about this with other developers. it is tested and working fine for them it is been 3 weeks waiting for that. i don't know why we really move slowly for such trivial changes ?
i already answered you long back @JReinhold the answer just after your comment |
@blowsie you still waiting for this to be merged ? when did you tested with your team and when we had the initial discussion about this issue that breaks the work for add-on's authors. means you really can't even have 2 add-ons that utilise app.use(plugin) or app.provide(). works properly, i just need to give @JReinhold more info and context of the issue since he was not in the loop |
Yes we are still waiting for this to be merged. |
In short, the setup function provided by storybook, can only be used once, since any further use overrides the last use. |
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.
@blowsie do have any suggestion ? you can added your review if it seems fine for you then approve
Sorry any suggestion for the code changes? Or is there an issue that needs addressing? |
@chakAs3 you'll notice that the comment you screenshotted comment has a "Pending" tag next to your name, which means that it was never published and is only visible by you. You probably wrote it as part of a review that you never published. Either way, thanks for the elaboration. I didn't know that the |
sorry i found out that was pending late i thought i published already |
@JReinhold can approve the requested changes please ! we are stuck here !! |
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.
Looks good to me, and thanks!
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.
This looks good to me. I'd like @kasperpeulen to make sure this is well-tested, but we can do that after the fact since users are blocked on this. Thanks so much for putting it together. Great change!
Closes #
vue 3 single use of setup() which is causing issue for add-on authors NickMcBurney/storybook-vue3-router#38
What I did
change the implementation of setup function mostly called in preview.js or plugins , now you can use as many as you want and it won't be overridden by any plugin use
this PR should be merged after merging #21956
How to test
Checklist
MIGRATION.MD
Maintainers
make sure to add the
ci:merged
orci:daily
GH label to it.["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]