-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Describe the bug
Adding <svelte:self />
directly to a {#snippet}
, raises the error:
<svelte:self> components can only exist inside {#if} blocks, {#each} blocks, or slots passed to components
I would have expected it to be allowed though. Adding an {#if true}
block to the snippet effectively silences the error, allowing the expected behaviour.
Reproduction
Logs
No response
System Info
https://svelte-5-preview.vercel.app/
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels