Why did the v-bind="$props" stopped to work on Vue 3? #23798
Unanswered
K-Schaeffer
asked this question in
Help
Replies: 2 comments
-
Have you actually figured this out? I cannot make both slots and props work together.
This is the only decent working template. But trying to add
Which makes the options not rendering. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This helped me a lot thank you @K-Schaeffer 🎖️ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Updating storybook from 7.0.11 to 7.1.0 I noticed that my stories using $props to bind stopped to work, e.g.:
Basically, all binds stop to work as they used to. With that, I had to refactor to the args syntax, e.g.:
Doing some research about this I found this PR #13981, which basically added this new syntax to Storybook. What's odd is that this addition was released into 6.x and testing here I could check that until 7.1.0-alpha.10 it worked, so the changes made on 7.1.0-alpha.11 broke this functionality, probably on this commit 8a50224.
So, to summarize, the purpose of this discussion is:
Used to work:
Current way of making it work:
This issue was also mentioned here #18688.
So that's pretty much it, the few disadvantages I currently see on using the args syntax are the requirement of using this legacy action syntax with methods and I also used to face some reactivity issues on some edge cases, though I couldn't really reproduce them so we might count only this actions thing as a current disadvantage.
Beta Was this translation helpful? Give feedback.
All reactions