Skip to content

Commit a55295d

Browse files
authored
docs: mention that svelte:self can be in a slot (#6184)
1 parent 52d6a59 commit a55295d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/content/docs/02-template-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ Named slots can also expose values. The `let:` directive goes on the element wit
14301430

14311431
The `<svelte:self>` element allows a component to include itself, recursively.
14321432

1433-
It cannot appear at the top level of your markup; it must be inside an if or each block to prevent an infinite loop.
1433+
It cannot appear at the top level of your markup; it must be inside an if or each block or passed to a component's slot to prevent an infinite loop.
14341434

14351435
```sv
14361436
<script>

0 commit comments

Comments
 (0)