Reactive-Extensions / RxJS

The Reactive Extensions for JavaScript
http://reactivex.io
Other
19.49k stars 2.1k forks source link

jQuery promises are not working with retry #1544

Closed srikrishnacj closed 6 years ago

srikrishnacj commented 6 years ago
$(function () {
    Rx.Observable
        .fromEvent($("html"), "click")
        .switchMap(() => Rx.Observable.fromPromise($.get('https://api.fixer.io/latest')).retry(3))
        .subscribe(console.log)
})

2018-01-20 20_00_22-currency converter 2018-01-20 20_10_06-

retry is set to 3 but only one network request is happening. using latest versions of JQuery(3.x) and RxJS(5.x)

srikrishnacj commented 6 years ago

Sorry wrongly posted RxJS 5.x Issue here.