You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In light of sveltejs/svelte#14714, "feat: allow objects/arrays for class attribute", is a sv migrate script for class attributes being prepared as we speak? The docs are dissuading use of class: in versions past 5.16. This is just a thought, as I can see this being a bigger migration than $app/state. I would like to see a migration script that can at least partially consolidate existing class: into a single array or object attribute, and to propose possible paths forward when the script is not confident in the migration.
The text was updated successfully, but these errors were encountered:
Thanks for that idea.
We discussed that in the maintainers chat and deemed that it comes down to personal preference if the new syntax is better in all cases, or only in some. Thus we decided providing a migration is not a too good idea.
But we also discussed that the docs are pressing a bit to much on the new syntax.
Unless you’re using an older version of Svelte, consider avoiding class:, since the attribute is more powerful and composable.
There are currently no plans to deprecate the syntax anytime soon. Feel free to open a docs PR on the svelte repo though!
In light of sveltejs/svelte#14714, "feat: allow objects/arrays for class attribute", is a
sv migrate
script for class attributes being prepared as we speak? The docs are dissuading use ofclass:
in versions past 5.16. This is just a thought, as I can see this being a bigger migration than$app/state
. I would like to see a migration script that can at least partially consolidate existingclass:
into a single array or object attribute, and to propose possible paths forward when the script is not confident in the migration.The text was updated successfully, but these errors were encountered: