Skip to content

Commit 6468f5d

Browse files
committed
update lazy loading docs
1 parent 0804c59 commit 6468f5d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/routes/lazy-loading/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121

2222
# Lazy Loading
2323

24-
`openModal` supports lazy loading of your modal components using dynamic imports.
25-
26-
The backdrop will be shown while the component loading.
24+
Modal components can be lazy loaded when using `openModals`
2725

2826
```js
2927
import { openModal } from 'svelte-modals'
@@ -35,3 +33,7 @@ openModal(() => import('./AlertModal.svelte'), {
3533
```
3634

3735
<button class="mt-6" on:click={handleAsync}>Open Modal</button>
36+
37+
While the component is loading, the `<Modal />` component will render the `backdrop` and `loading` slots.
38+
39+
[See Modal API](/api#modals)

0 commit comments

Comments
 (0)