From 26db569ad73bee08cec2f47a1879e95a2d41dd00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 10 Jan 2023 21:41:08 +0100 Subject: [PATCH] use BehaviorSubject --- .../shared/components/section/section.context.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts index da3b54abdb..7a123bf946 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts @@ -1,14 +1,15 @@ +import { BehaviorSubject } from 'rxjs'; import type { Entity, ManifestSection, ManifestSectionView, ManifestTree } from '@umbraco-cms/models'; import { UniqueBehaviorSubject } from 'src/core/observable-api/unique-behavior-subject'; export class UmbSectionContext { - - + + #manifest; public readonly manifest; // TODO: what is the best context to put this in? - private _activeTree = new UniqueBehaviorSubject(undefined); + private _activeTree = new BehaviorSubject(undefined); public readonly activeTree = this._activeTree.asObservable(); // TODO: what is the best context to put this in?