Let's say I have 3 lists. Two of them are basic lists while the last one is an observable.
The issue is I now want to merge a non-observable list into the observable one.
Right now I do something like this but I feel like it's "against observables' nature"
listToMerge = []
listObs$: BehaviorSubject<[]> = new BehaviorSubject([]);
listObsCopy = []
I already added some elements in the listObs with the next method
listObs$.next(someStuff);
listObsCopy = somestuff;
Here is my attempt to merge them.
listToMerge = listObsCopy.concat(someOtherStuff);
listObs$.next(listToMerge as any);