Questions tagged [combinelatest]
137 questions
0
votes
1 answer
how can i prevent CombineLatest to fire the first time
I have a form with a bunch of fields (using reactiveForm).
When the value change in field A or B, I want to execute doStuffWithAnB.
so combineLatest seems to be what i need.
combineLatest(A.valueChanges,B.valueChanges).subscribe(doStuffWithAnB)
now…

JiBi
- 378
- 1
- 6
0
votes
1 answer
Angular 8: Breaking down HTTP request instead of sending in a lumpsum
Hi StackOverflow community members,
I am working on Angular 8. I have a question on how to breakdown my HTTP request, instead of sending 1000 requests in 1 go, I would like to have something like sending every 50 requests at 1 time only. I couldn't…

Chuah Cheng Jun
- 243
- 1
- 3
- 17
0
votes
1 answer
pipe operator not supported with : Angular[Typescript] - rxjs - combineLatest
The Code with the proplem
import { Injectable } from '@angular/core';
import { AccountingTransactionsStoreService } from './accounting-transactions-store.service';
import { GeneralLedgerAccountsStoreService } from…

Mohamed Elrashid
- 8,125
- 6
- 31
- 46
0
votes
1 answer
Observables combine with combineLatest Observables which are generated in a for loop
I am trying to combine observables, where each observables gets the input in a for loop. My problem is, that I would know how to do it without the for loop, if I know the array the for loop would loop over in advance -> I would just put everything…

JilReg
- 382
- 1
- 3
- 16
0
votes
1 answer
Invoke modal inside SwitchMap in angular2 resolver
I have a requirement of displaying modal popup based on warning message inside angular resolver. I am making a service call to API and using combineLatest and SwitchMap returning multiple responses. I need to display modal popup based on API service…

Viswa
- 745
- 10
- 30
0
votes
1 answer
RxJava Kotlin combineLatest timeout before first element
I'm developing an android app in Kotlin. I have got 3 realtime data observables. The data comes from Firestore. They are wrapped inside RxJava's Observable.combineLatest() method. I want to set a timeout on a first data retrieval.
I have tried to…
0
votes
1 answer
How to use static combineLatest correctly
Since RxJS v.6.5, the static combineLatest syntax
combined$ = combineLatest(a$,b$,c$); is deprecated.
Instead you should use following syntax:
combined$ = combineLatest([a$,b$,c$]);
Where they are: a$: Observable, b$: Observable, c$:…

Mikelgo
- 483
- 4
- 15
0
votes
2 answers
How to fix nil value from realm object property?
I have a project which uses ObjectMapper for JSON serialization & deserialization and Realm to cache data locally. I get data from Rest API and save them into realm database properly I have checked with RealmStudio. The problem is when I retrieve…

FaFa
- 59
- 10
0
votes
2 answers
How do I flatten the array and remove empty arrays from results of combineLatest(...)?
I’m working in an angular 6 application. I have a function that returns an observable of an array of observables, which in turn are observables of arrays.
The results might look something like this:
[
[],
[],
[object, object],
[],
…

Gibran Shah
- 871
- 3
- 15
- 34
0
votes
1 answer
getData from multiple filters does not return anything
I can't get my getData function on app.component.ts to return the query with all the arguments for the API Request. I don't get any errors and I also can't console.log inside the function because it doesn't work. It skips everything I write inside…

Marcelo Lima
- 23
- 7
0
votes
1 answer
How Does RXSwift combineLatest Use, What Looks Like, An Anonymous Class In A Closure And Handle Additional Parameters
So far as I understand it, Swift does not support anonymous classes.
I am working with an RXSwift codebase and there is a block of code I cannot fully grasp what is going on.
Here is the block:
sections = Observable.combineLatest(observable1,
…

Aggressor
- 13,323
- 24
- 103
- 182
0
votes
1 answer
RxJava CombineLatest debugging
I am using RxJava combineLatest operator.
According to the documentation, when subscribing, the first combine emit event will occur only after both observables emits there values, and from this point, it will emit on every emit of each of the…

Moti Bartov
- 3,454
- 33
- 42
0
votes
1 answer
Extensible Combination of Observables
I'd like to store IObservables of Lists in a container and subscribe to a combination of these observables retrieving a merged List. Then I would like to be able to add more Observables without having to renew the subscription and still get the new…

Daniel
- 597
- 11
- 19
0
votes
0 answers
Alternatives to subscribe for cold observable
In combineLatest the method gets invoked only when we apply a ".subscribe()" to its end.
I wanted to know if there are other alternatives than adding subscribe to combineLatest method.

FrontEndDeveloper
- 99
- 1
- 2
- 11
0
votes
1 answer
Concat 2 values of Angular 6 FormControl
I am creating a API path like http://api.example.com?startdate_30.12.2018&enddate_30.12.2018 where I am using 2 input date field to generate date values.
Here is my code:
import { Component, OnInit } from '@angular/core';
import {…

Dhirendra Kumar
- 575
- 1
- 7
- 19