Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions documentation/docs/03-template-syntax/05-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ Similarly, if you only want to show the error state, you can omit the `then` blo
```

> [!NOTE] You can use `#await` with [`import(...)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) to render components lazily:
>
> ```svelte
> {#await import('./Component.svelte') then { default: Component }}
> <Component />
> {/await}
> ```

```svelte
{#await import('./Component.svelte') then { default: Component }}
<Component />
{/await}
```

Loading