Closed thelostword closed 2 months ago
This works as expected. You can access the snippet within the snippet, to for example to recursive rendering. Think of a snippet as a function definition - inside its scope the function is callable, too. Therefore closing.
Describe the bug
When using a
snippet
block in Svelte 5, if thesnippet
block name is the same as the component name, it causes an error. This issue arises when trying to reuse the component within thesnippet
block.Steps to Reproduce
DemoTempChild
.snippet
block syntax in a parent component:Reproduction
REPL: https://svelte-5-preview-svelte.vercel.app
Logs
System Info
Severity
annoyance