Skip to content

Commit

Permalink
Properly await on children before hydrating in Safari (withastro#3891)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored Jul 11, 2022
1 parent ba983ff commit b2648d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/astro-island.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2648d3

Please sign in to comment.