diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 7b7f3323b302..93280f95f260 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -180,7 +180,6 @@ if (typeof HTMLElement === 'function') { connectedCallback() { const { on_mount } = this.$$; - this.$$.on_disconnect = on_mount.map(run).filter(is_function); // @ts-ignore todo: improve typings