I'm currently using forkJoin
to wait for an array of Observable
(s) to finish before pipe
(ing) and tap
(ping).
I noticed if the array is empty nothing is emitted and I cannot even tap
. How do I solve this kind of problem? Should I just check if the array is empty?
myFirstFunction(...) {
const observables = ...
return forkJoin(observables)
}
mySecondFunction(...) {
return myFirstFunction().pipe(tap(() => ...))
}