Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

pausableBuffered produces incorrect results if you send an initial false signal after first sending some data #745

Closed
bman654 opened this issue Jun 4, 2015 · 0 comments

Comments

@bman654
Copy link

bman654 commented Jun 4, 2015

This code shows the behavior:

    var data = new Rx.Subject();
    var signal = new Rx.Subject();
    var p = data.pausableBuffered(signal);
    var results = [];
    p.subscribe(function (value) { results.push(value); });

    data.onNext(1);
    signal.onNext(false);
    signal.onNext(true); // causes two 1's to be observed

Here's a jsFiddle with a QUnit test: http://jsfiddle.net/bman654/9vmccse4/1/

paulpdaniels added a commit to paulpdaniels/RxJS that referenced this issue Jun 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants