Questions tagged [combinelatest]
137 questions
0
votes
1 answer
RXJS - Filter by another observable then groupBy
I have an observable of an array of tasks. I want to filter these tasks by another observable (a text input).
Then I want to group the filtered tasks by an 'entity' property and map that so the result is:
{ 'entity': 'a',
'tasks': [...] },
{…

Michael B
- 153
- 4
- 15
0
votes
0 answers
RxJS how to combineLatest over time?
I'm trying to create a polling system that polls the backend on interval.
I have a method add that takes a pollingItem that contains the command as a string and the refreshTime for the interval, and passes the observable created from the interval…

cvr
- 33
- 5
0
votes
1 answer
How to subtract 2 observables in RXJS 6
I want to subtract 2 observable numbers
this.num1:Observable
this.num2:Observable
this.num3:Observable
this.num1 = this.store.select(getNum1Count);
this.num2 = this.store.select(getNum2Count);
// this.num3 = difference of…

prabhat gundepalli
- 907
- 3
- 15
- 39
0
votes
1 answer
Can't detect first Observable changing / view does not refresh
I have a little problem with subscribing my Observable
I have one one combined Observable:
private selectedEntryId$ = new Subject();
private entries$ = new Subject();
private selectedEntry$ = Observable.combineLatest(
…

Jaroslaw K.
- 5,224
- 2
- 39
- 65
0
votes
1 answer
Matching two Observable Data Objects with combineLatest
I have two observable arrays: First array object observable
array1= Observable.of({
data: [
{
name: 'test',
lastname: 'last'
},
{
name: 'test1',
lastname: 'last1'
}
…

FrontEndDeveloper
- 99
- 1
- 2
- 11
0
votes
1 answer
Dependency between combineLatest combined observables
I have this seemingly easy use case where in a screen I display data based on sort, and pageIndex, both of which change via UI. So solution is easy
Observable
.combineLatest(sortObservable, pageIndexObservable, Pair::of)
.switchMap(tuple ->…

urSus
- 12,492
- 12
- 69
- 89
0
votes
1 answer
CompineLatest that observe multipe checked buttons Rxjava
I have created custom button, it has inner checked listener and I expose it as an observable with the help of a PublishSubject.
public class SwitchItem extends LinearLayout implements SwitchButton.OnCheckedChangeListener {
//other fields ...
…

Mohamed Ibrahim
- 3,714
- 2
- 22
- 44
0
votes
1 answer
OnNext not being called on observable when using combineLatest and take
I'm trying to get a subscription to automatically unsubscribe when it emits an item. The base observable is created like this.
public static Observable setupConnection(RxBleDevice device, PublishSubject disconnectTrigger) {
…

David Carek
- 1,103
- 1
- 12
- 26
0
votes
0 answers
Input own values to combinelatest
I have this combinelatest flowable:
private val subject: BehaviorSubject = BehaviorSubject.create()
Flowable.combineLatest(
materialA,
materialB,
subject.toFlowable(LATEST),
Function3 { ma, mb, index -> if(index == 0) ...…

johnny_crq
- 4,291
- 5
- 39
- 64
0
votes
1 answer
Manually trigger a RxJava combinelatest flowable
So i have a scenario in which i want to combine the newest results of two flowables and do something with it.
Flowable.combineLatest(
info,
list,
BiFunction { ... }
)
In certain conditions,…

johnny_crq
- 4,291
- 5
- 39
- 64
0
votes
1 answer
Combine a part of values
I have a Dataframe like this:
In:
daten["Gas"].head(5)
Out:
2016-12-09 10:22:00 2.1
2016-12-09 10:22:15 5.1
2016-12-09 10:22:30 3.2
2016-12-09 10:22:45 2.0
2016-12-09 10:23:00 1.1
And i will do a calculation with a…

kolja
- 505
- 7
- 24
0
votes
1 answer
combineLatest doesn't subscribe to parameter Observables, doesn't deliver data
I have a fairly common use case. I am loading an array of objects from FirebaseDatabase, and attaching images from Firebase Storage.
FirebaseDatabase returns an Observable based on query. Everytime data in the db will change, the Observable will…

f.khantsis
- 3,256
- 5
- 50
- 67
-1
votes
2 answers
How to combine 2 Observable in angular app
I have a problem, how to combine 2 observable in a complicated case. I show you the code as follow:
so I have 2 Observables:
This 2 Observable will be used in canActivate(): Observable
1: this.loadingState :…

user1938143
- 1,022
- 2
- 22
- 46
-1
votes
1 answer
Angular combineLatest: How many subscriptions are allowed in combineLatest? Are there any restrictions on number of subscribtions?
I am currently using 7 subscriptions in combine latest.
Will mostly need to use some more. So need to know if any restrictions on subscriptions that goes in combineLatest.

MNM
- 23
- 1
-2
votes
2 answers
the argument type'List Function(List?, List?)' can't be assigned to 'List Function(List, List)'
enter image description here
error: The argument type 'List< Entry Job > Function(List?, List?)' can't be assigned to the parameter type 'List Function(List, List)'. (argument type not assignable at lib\App\home\entries\entries_bloc.dart:33)

Muhammad Saqib Aziz
- 84
- 4