Skip to content

Commit 6224a70

Browse files
authored
fix(docs): fix getUpdateComplete example in lifecycle (#1357)
1 parent 32e0411 commit 6224a70

File tree

1 file changed

+2
-1
lines changed
  • packages/lit-dev-content/site/docs/v3/components

1 file changed

+2
-1
lines changed

packages/lit-dev-content/site/docs/v3/components/lifecycle.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,9 @@ It's recommended to override the `getUpdateComplete()` method instead of the `up
497497
```js
498498
class MyElement extends LitElement {
499499
async getUpdateComplete() {
500-
await super.getUpdateComplete();
500+
const result = await super.getUpdateComplete();
501501
await this._myChild.updateComplete;
502+
return result;
502503
}
503504
}
504505
```

0 commit comments

Comments
 (0)