I have tried to get data from BehSubject this.visible$ only in case when this.redraw$ happends.
It works, but if the this.visible$ is changed somewhere the prev stream again works. How to avoid it?
this.redraw$.pipe(mergeMap(() => this.visible$)).subscribe((userfavourite: UserFavourite[]) => {}
As solution I can do this:
this.redraw$.subcribe(() => {
this.visible$.subscribe((userfavourite: UserFavourite[]) => {}
});
Maybe something like: