Skip to content

Commit 511530f

Browse files
committed
[fix] dont clear adapter, webcontainer can only be one instance
1 parent f5569d0 commit 511530f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/routes/tutorial/[slug]/+page.svelte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@
120120
121121
completed = false;
122122
123-
load_webcontainer();
123+
load_adapter();
124124
});
125125
126-
async function load_webcontainer() {
126+
async function load_adapter() {
127127
clearTimeout(timeout);
128128
loading = true;
129129
@@ -425,9 +425,7 @@
425425
{initial}
426426
{error}
427427
on:reload={async () => {
428-
await adapter?.destroy();
429-
adapter = undefined;
430-
load_webcontainer();
428+
load_adapter();
431429
}}
432430
/>
433431
{/if}

0 commit comments

Comments
 (0)