ApolloQueryObservable not working with rxjs forkJoin #bug
See original GitHub issueI have the problem that I need to resolve two data sources for a screen and can start rendering screen as soon as both are available. However Observable.forkJoin seem not to be working with Apollo. Is this a bug or am I doing anything wrong?
import {Observable, Subject} from "rxjs/Rx";
let fork = Observable.forkJoin(
this.apollo.watchQuery({query:query})
);
fork.subscribe({
(data) => console.log(data);
})
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ApolloQueryObservable not working with rxjs forkJoin #bug
I have the problem that I need to resolve two data sources for a screen and can start rendering screen as soon as...
Read more >Observable.forkJoin() doesn't execute - Stack Overflow
error (err) ); I am trying to subscribe to a result of 2 observables using forkJoin . For some reasons, the "Data received"...
Read more >RxJS: Error Handling With forkJoin - Agira Technologies
When you are working in RxJS, one of the most difficult tasks in asynchronous programming is dealing with error handling.
Read more >Combining Observables with forkJoin in RxJS
In this post you'll learn how to use the forkJoin operator in RxJS. ... Notice how 'Hey!' does not get emitted due to...
Read more >The RxJs forkJoin Operator - In Depth Explanation and ...
I think one simple way of achieving it would be to just use the catchError operator and suppress any error that can happen...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s because an
Observable
from thewatchQuery
method never completes. TheforkJoin
operator will work withquery
method (angular2-apollo
since v0.8.0 returns an Observable instead of a Promise).@manuelfink You define what the
switchMap
operator returns so how it can returnwatchQuery
instead ofquery
?