From 6224a704aad0c4343712576579024badb561d5f3 Mon Sep 17 00:00:00 2001 From: Max Albrecht <1@178.is> Date: Tue, 30 Jul 2024 18:55:45 +0100 Subject: [PATCH] fix(docs): fix getUpdateComplete example in lifecycle (#1357) --- packages/lit-dev-content/site/docs/v3/components/lifecycle.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/lit-dev-content/site/docs/v3/components/lifecycle.md b/packages/lit-dev-content/site/docs/v3/components/lifecycle.md index c2484ece4..9eb86016e 100644 --- a/packages/lit-dev-content/site/docs/v3/components/lifecycle.md +++ b/packages/lit-dev-content/site/docs/v3/components/lifecycle.md @@ -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; } } ```