Skip to content

Commit

Permalink
docs: mention that svelte:self can be in a slot (#6184)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrich authored Apr 12, 2021
1 parent 52d6a59 commit a55295d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/02-template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,7 @@ Named slots can also expose values. The `let:` directive goes on the element wit

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

It cannot appear at the top level of your markup; it must be inside an if or each block to prevent an infinite loop.
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.

```sv
<script>
Expand Down

0 comments on commit a55295d

Please sign in to comment.