Skip to content

Commit 9129d2f

Browse files
authored
fix: check that component wasn't instantiated (#10458)
#10454
1 parent 1a721e5 commit 9129d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/custom-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if (typeof HTMLElement === 'function') {
8989
if (!this.$$c) {
9090
// We wait one tick to let possible child slot elements be created/mounted
9191
await Promise.resolve();
92-
if (!this.$$cn) {
92+
if (!this.$$cn || this.$$c) {
9393
return;
9494
}
9595
/** @param {string} name */

0 commit comments

Comments
 (0)