From 715500071b809ba46b761588c47076050098a892 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Thu, 13 Sep 2018 15:14:32 +0200 Subject: [PATCH] bugfix: performance after debounced nav change --- src/ui/nehubaContainer/nehubaContainer.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/nehubaContainer/nehubaContainer.component.ts b/src/ui/nehubaContainer/nehubaContainer.component.ts index 50920f80c..ee7632e0e 100644 --- a/src/ui/nehubaContainer/nehubaContainer.component.ts +++ b/src/ui/nehubaContainer/nehubaContainer.component.ts @@ -375,8 +375,12 @@ export class NehubaContainer implements OnInit, OnDestroy{ this.subscriptions.push( combineLatest( - this.selectedRegions$, - this.hideSegmentations$, + this.selectedRegions$.pipe( + distinctUntilChanged() + ), + this.hideSegmentations$.pipe( + distinctUntilChanged() + ), this.ngLayers$.pipe( map(state => state.forceShowSegment) ) -- GitLab