We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0804c59 commit 6468f5dCopy full SHA for 6468f5d
src/routes/lazy-loading/index.md
@@ -21,9 +21,7 @@
21
22
# Lazy Loading
23
24
-`openModal` supports lazy loading of your modal components using dynamic imports.
25
-
26
-The backdrop will be shown while the component loading.
+Modal components can be lazy loaded when using `openModals`
27
28
```js
29
import { openModal } from 'svelte-modals'
@@ -35,3 +33,7 @@ openModal(() => import('./AlertModal.svelte'), {
35
33
```
36
34
37
<button class="mt-6" on:click={handleAsync}>Open Modal</button>
+
+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