Skip to content

Commit

Permalink
fix: remove setTimeout from SlotChildObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Jan 12, 2024
1 parent 0cae556 commit a82f625
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/core/common-behaviors/slot-child-observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ export const SlotChildObserver = <T extends Constructor<LitElement>>(

protected override firstUpdated(changedProperties: PropertyValues): void {
super.firstUpdated(changedProperties);
setTimeout(() => {
this._hydratedResolved = true;
this._hydratedResolve();
this.checkChildren();
}, 0);
this._hydratedResolved = true;
this._hydratedResolve();
this.checkChildren();
}

protected override async getUpdateComplete(): Promise<boolean> {
Expand Down

0 comments on commit a82f625

Please sign in to comment.