From b2648d3ef3e49063c8079ade424b5b0e2319b68b Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 11 Jul 2022 14:10:23 -0400 Subject: [PATCH] Properly await on children before hydrating in Safari (#3891) --- src/runtime/server/astro-island.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/server/astro-island.ts b/src/runtime/server/astro-island.ts index d3a22a5c2d09..d2cf57d6ceae 100644 --- a/src/runtime/server/astro-island.ts +++ b/src/runtime/server/astro-island.ts @@ -42,7 +42,7 @@ declare const Astro: { public hydrator: any; static observedAttributes = ['props']; connectedCallback() { - if (!this.getAttribute('await-children') || this.firstChild) { + if (!this.hasAttribute('await-children') || this.firstChild) { this.childrenConnectedCallback(); } else { // connectedCallback may run *before* children are rendered (ex. HTML streaming)