Skip to content

Commit 188f0c0

Browse files
authored
Update documentation/docs/03-template-syntax/05-await.md
1 parent e5abe73 commit 188f0c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/docs/03-template-syntax/05-await.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ Similarly, if you only want to show the error state, you can omit the `then` blo
7272
> [!NOTE] You can use `#await` with [`import(...)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) to render components lazily:
7373
>
7474
> ```svelte
75-
> {#await import('./Component.svelte') then module}
76-
> <module.default />
75+
> {#await import('./Component.svelte') then { default: Component }}
76+
> <Component />
7777
> {/await}
7878
> ```
7979

0 commit comments

Comments
 (0)