The Reactive Extensions for JavaScript is a set of libraries to compose asynchronous, resilient and responsive event driven programs using observable collections with ECMA Script5 Array#extras style composition in JavaScript.
Questions tagged [reactive-extensions-js]
121 questions
2
votes
1 answer
RxJS - toBlocking operator
in RxJava there is the Observable.toBlocking() operator to retrieve the data of the observable synchronously. I can not find a similiar operator for RxJS.
I want to use this operator to improve my code with Rx and without using another functional…

Tim Joseph
- 847
- 2
- 14
- 28
2
votes
3 answers
trigger event after several ajax calls succeeded
I wonder which is the best approach to trigger an event after several (unordered) ajax calls finished.
To make it a bit clearer, I would like to call a Method doSomethingGreat() which triggers several ajax calls, the order in which those succeed ins…

Christoph
- 26,519
- 28
- 95
- 133
2
votes
1 answer
handling errors with flatMapLatest and retry
I have a web page where there are a bunch of items that the user can click on. clicking on any item, depending on it's type, will send an ajax request to the server and then display more items.
If the request results in an error, I want to display…

ahmelsayed
- 7,125
- 3
- 28
- 40
2
votes
1 answer
Rxjs swallows errors
Having a simple Rxjs stream, i faced this situation:
Rx.Observable
.fromArray([1,2,3,4,5,6])
// if commented from here
.windowWithCount(2, 1)
.selectMany(function(x) {
return x.toArray();
})
// to here .. the error bubbles up
…

aleclofabbro
- 1,635
- 1
- 18
- 35
2
votes
1 answer
$createObservableFunction subscriber gets overriden
If I create an observable utilizing the $createObservableFunction method and I subscribe to that observable multiple times. The last subscriber overrides any other subscriber.
However if I create an observable with rx.Observable.interval() and…

Jonathan Sheely
- 501
- 1
- 6
- 13
2
votes
0 answers
rx data driven subwidgets
Following up on How to structure rxjs code, concerning how to structure a widget with subwidget when using rx, how would you structure rx code where the subwidgets are data-driven?
As a toy problem, suppose you have an external source (e.g. web…

user1009908
- 1,390
- 13
- 22
1
vote
1 answer
How to buffer events with Rx extentions for JS
I wan't to get text change events from input but limit them to 3 per second.
Rx support my wish? how can I achieve this ability?

Chen Kinnrot
- 20,609
- 17
- 79
- 141
1
vote
1 answer
Distinct between possible streams, looking for a clean solution
I'm trying to use RxJS in some GUI scenarios. I came across an interesting case.
I have a widget where one can view, edit and create entities.
When you click on the "AddNewEntity" Button. The editwidget creates an empty entity, loads it and changes…

Christoph
- 26,519
- 28
- 95
- 133
1
vote
2 answers
How to filter button tap with button title in RxSwift?
Is there anyway we can filter button tap event based on button title like below..!!
button.rx.tap
.filter { ($0.titleLabel.text.count)!> 0 }

Nitin
- 7,455
- 2
- 32
- 51
1
vote
1 answer
Does it make sense to return shareReplay from defer?
I was trying to utilize observables in authentication routine in my sample app which I'm building to learn ReactiveX, while looking for examples I've found a neat and also well in-code commented gist (@alxhub, thanks!) that shows how an…

Jyrkka
- 526
- 1
- 8
- 26
1
vote
0 answers
RxJS - Map over last element of a stream
I have a stream that will either complete or throw an exception (ie. not an infinite stream).
It emits 2 values (say A and B) before it finishes. Is it possible to map the last value emitted to something else?
stream$
.debounceTime(100)
…

ᴘᴀɴᴀʏɪᴏᴛɪs
- 7,169
- 9
- 50
- 81
1
vote
1 answer
Which one is the Github organization for reactivex.io?
There are two different organizations linked to reactivex.io:
https://github.com/ReactiveX
https://github.com/Reactive-Extensions
I see that Java extensions exist only in ReactiveX.
But, Rx.NET or IxJx exist in both organizations. However the…

Miguel Gamboa
- 8,855
- 7
- 47
- 94
1
vote
1 answer
How to use debounce stream based on value?
For example, assume that we have stream like following
Stream 1 | -1-2-3-1-2-3--4-----------
after debounce, I would like to have the emitted stream looks like as follows:
Stream 2 | ---------------1-2-3--4------
There are lots of examples how to…

Jeff Nien
- 21
- 1
- 3
1
vote
1 answer
Execute HTTP call once and cache value until some condition changes
I am looking to cache the result of a specific Angular2 HTTP call (getting my user profile from the server), and I want that cache to remain valid until I update the profile.
This is the code I have, which does cache the value, but never updates it,…

Vegard Larsen
- 12,827
- 14
- 59
- 102
1
vote
1 answer
Buffer/Ignore events until period of inactivity then fire only last event
I have an observable that when it fires a message is displayed. After a delay I want to fade that message out, unless in the mean time that observable has fired again.
In other words given an observable, I want to create another observable, such…

thatismatt
- 9,832
- 10
- 42
- 54