We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffa3dc3 + 24f233f commit 910caa7Copy full SHA for 910caa7
library/component.ts
@@ -792,7 +792,7 @@ export const useTemplate = <
792
configurable: true,
793
enumerable: true,
794
value(this: E) {
795
- return maybeCall(() => _connectedCallback.call(this))
+ return maybeCall(() => _connectedCallback && _connectedCallback.call(this))
796
.then(() => maybeCall<HTMLTemplateElement>(f))
797
.then((template) => {
798
if (!template) return;
0 commit comments