0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

[ci] format

This commit is contained in:
bholmesdev 2022-07-06 20:59:56 +00:00 committed by fredkbot
parent cd3f6348c4
commit b2f53c37c5

View file

@ -42,7 +42,7 @@ declare const Astro: {
public hydrator: any; public hydrator: any;
static observedAttributes = ['props']; static observedAttributes = ['props'];
connectedCallback() { connectedCallback() {
if(this.getAttribute('client') === 'only' || this.firstChild) { if (this.getAttribute('client') === 'only' || this.firstChild) {
this.childrenConnectedCallback(); this.childrenConnectedCallback();
} else { } else {
// connectedCallback may run *before* children are rendered (ex. HTML streaming) // connectedCallback may run *before* children are rendered (ex. HTML streaming)
@ -70,7 +70,7 @@ declare const Astro: {
return this.hydrate; return this.hydrate;
}, },
opts, opts,
this, this
); );
} }
hydrate = () => { hydrate = () => {