-
Notifications
You must be signed in to change notification settings - Fork 298
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
[Feature]: Update Components to Vue 3.5 Reactive Props Destructure #742
Comments
I really don't like to reassign But If I use only
|
@sadeghbarati I think one working approach will be Reserved words documentation link: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#reserved_words |
Yeah, you can't name your variable class, that's why className is used. Vue props have different scope so you can name it class in there. I usually name it cls or _class or something like that, className is too long and too reacty for me, but anyway you need to name it somehow, if you use such approach, because class is reserved word in JS. |
I support the proposed change, but it is important to note that this is a breaking change. Anyone using Vue versions earlier than 3.5 without enabling the experimental flag may encounter unexpected errors. In my experience, there may not be an explicit error message, but the reactivity will fail to function properly, making it difficult to debug. If this is to be implemented, we would need to properly communicate the required migration steps. |
Like @Saeid-Za said, this is a breaking change and imo most people would rather appreciate bug fixes and more mirroring with the official shadcn (new charts) |
Describe the feature
Additional information
The text was updated successfully, but these errors were encountered: