From c2f5274b9e588231a2b9dc60f98fef8e12769393 Mon Sep 17 00:00:00 2001 From: JesmoDev <26099018+JesmoDev@users.noreply.github.com> Date: Tue, 7 May 2024 10:44:48 +0200 Subject: [PATCH] move request collection to ctor --- .../core/collection/default/collection-default.element.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.element.ts index 6a60bd56aa..f57b0043b8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/collection/default/collection-default.element.ts @@ -32,15 +32,11 @@ export class UmbCollectionDefaultElement extends UmbLitElement { super(); this.consumeContext(UMB_COLLECTION_CONTEXT, (context) => { this.#collectionContext = context; + this.#collectionContext?.requestCollection(); this.#observeCollectionRoutes(); }); } - protected firstUpdated(_changedProperties: PropertyValueMap | Map): void { - super.firstUpdated(_changedProperties); - this.#collectionContext?.requestCollection(); - } - #observeCollectionRoutes() { if (!this.#collectionContext) return;