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 6c250c6 commit 81ffddfCopy full SHA for 81ffddf
src/runtime/internal/Component.ts
@@ -55,7 +55,7 @@ export function claim_component(block, parent_nodes) {
55
56
export function mount_component(component, target, anchor) {
57
const { fragment, on_mount, on_destroy, after_update } = component.$$;
58
- const isCustomElement = ['connectedCallback', 'attributeChangedCallback', 'disconnectedCallback'].every((method) => typeof component[method] === 'function');
+ const isCustomElement = Object.getPrototypeOf(component.constructor) === SvelteElement;
59
60
fragment && fragment.m(target, anchor);
61
0 commit comments