I have the following code:
//Loop: For each user ID/Role ID, get the data
userMeta.forEach((businessRole) => {
Observable.forkJoin(
af.database.obje
I've faced a similar issue: I was creating a list of observables dynamically and I've noticed that forkjoin() never emits nor completes if the list of observables is empty whereas Promise.all() resolves with an empty list :
Observable.forkJoin([])
.subscribe(() => console.log('do something here')); // This is never called
The workaround I've found is to check the length of the list and to not use this operator when it is empty.
return jobList.length ? Observable.forkJoin(jobList) : Observable.of([]);