On my
ngOnInit()
I have this code:
combineLatest([ obs1, obs2, obs3]).subscribe(([obs1Res, Obs2Res, Obs3Res]) => { })
and the result is emitted once when they are completed.
Is there a way to emit for each new completed observable and get a result like so:
[null, 2, null], [1, 2, null], [1, 2, 3]
I will use this to dynamically render a page and assign the values if they are not null.
combineLatest([obs1, obs2, obs3]).subscribe(([obs1Res, Obs2Res, Obs3Res]) => {firstValue ??= Obs1Res; secondValue ??= Obs2Res; thirdValue ??= Obs3Res })