-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Svelte 5: deprecate <svelte:component>
#12668
Comments
My unscientific impression is that nearly all uses in the wild of The |
This could be solved by documentation because it already works if you use And to be fair it seems like a better solution considering also the other components needs to be Uppercase Tbf it would be cool to have a solution for the first tho even if the derived solution is still not bad. |
On a side note: I think the docs stating |
It is a breaking change — |
We could still reword it, though - the main thing for the breaking change is that the behavior of |
Actually now that I think about it it would be good to throw a warning if you are trying to use |
We'd need to make sure that |
Yeah only if it has a binding |
This is from the sveltekit generated root. There's already a PR open to fix this sveltejs/kit#12584 so when that pr is merged they will go away when you update svelte kit |
Describe the problem
See #12646 — we're now in a position to deprecate
<svelte:component>
if we want.There are some places where in theory it still makes sense to keep it:
We could solve these with
$derived
or@const
but maybe that's not as nice. The second one could be solved by treating<thing.component>
as a component rather than as an (impossible) element, which is a change we could make separately or at the same time. (It would conflict with Svelte Native's property elements, however.)Both should be considered for 5.0
Describe the proposed solution
see above
Importance
nice to have
The text was updated successfully, but these errors were encountered: