Observable.forkJoin() doesn't execute

后端 未结 5 1843
萌比男神i
萌比男神i 2020-12-30 23:42

I have the following code:

//Loop: For each user ID/Role ID, get the data
userMeta.forEach((businessRole) => {
  Observable.forkJoin(
    af.database.obje         


        
5条回答
  •  悲&欢浪女
    2020-12-31 00:19

    Just add observer.complete();

    Will not work:

    observer.next(...)
    

    Will work:

    observer.next(...);
    observer.complete();
    

    Hope it helps.

提交回复
热议问题