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 0919128 commit fccccd4Copy full SHA for fccccd4
packages/svelte/src/runtime/internal/Component.js
@@ -335,7 +335,7 @@ if (typeof HTMLElement === 'function') {
335
this.$$cn = false;
336
// In a microtask, because this could be a move within the DOM
337
Promise.resolve().then(() => {
338
- if (!this.$$cn) {
+ if (!this.$$cn && this.$$c) {
339
this.$$c.$destroy();
340
this.$$c = undefined;
341
}
0 commit comments