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 3e8d4fd commit a41bdb6Copy full SHA for a41bdb6
.changeset/gentle-owls-hug.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte': patch
3
4
+
5
+fix: check that component wasn't instantiated in `connectedCallback`
packages/svelte/src/runtime/internal/Component.js
@@ -227,7 +227,7 @@ if (typeof HTMLElement === 'function') {
227
if (!this.$$c) {
228
// We wait one tick to let possible child slot elements be created/mounted
229
await Promise.resolve();
230
- if (!this.$$cn) {
+ if (!this.$$cn || this.$$c) {
231
return;
232
}
233
function create_slot(name) {
0 commit comments