Skip to content

Commit

Permalink
fix(docs): fix getUpdateComplete example in lifecycle (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
eins78 authored Jul 30, 2024
1 parent 32e0411 commit 6224a70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,9 @@ It's recommended to override the `getUpdateComplete()` method instead of the `up
```js
class MyElement extends LitElement {
async getUpdateComplete() {
await super.getUpdateComplete();
const result = await super.getUpdateComplete();
await this._myChild.updateComplete;
return result;
}
}
```
Expand Down

0 comments on commit 6224a70

Please sign in to comment.