fix: check that component wasn't instantiated (#10466)

fixes #10454
pull/10489/head
Simon H 2 years ago committed by GitHub
parent 3e8d4fd252
commit a41bdb6184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: check that component wasn't instantiated in `connectedCallback`

@ -227,7 +227,7 @@ if (typeof HTMLElement === 'function') {
if (!this.$$c) {
// We wait one tick to let possible child slot elements be created/mounted
await Promise.resolve();
if (!this.$$cn) {
if (!this.$$cn || this.$$c) {
return;
}
function create_slot(name) {

Loading…
Cancel
Save