docs: mention that svelte:self can be in a slot (#6184)

pull/6189/head
Geoff Rich 4 years ago committed by GitHub
parent 52d6a5905d
commit a55295de8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

Loading…
Cancel
Save