{"action":"created","issue":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/734","labels_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/734/labels{/name}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/734/comments","events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/734/events","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/734","id":81186049,"number":734,"title":"DoWhile/While Don't behave as expected on a connectable","user":{"login":"jonahbron","id":607976,"avatar_url":"https://avatars.githubusercontent.com/u/607976?v=3","gravatar_id":"","url":"https://api.github.com/users/jonahbron","html_url":"https://github.com/jonahbron","followers_url":"https://api.github.com/users/jonahbron/followers","following_url":"https://api.github.com/users/jonahbron/following{/other_user}","gists_url":"https://api.github.com/users/jonahbron/gists{/gist_id}","starred_url":"https://api.github.com/users/jonahbron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonahbron/subscriptions","organizations_url":"https://api.github.com/users/jonahbron/orgs","repos_url":"https://api.github.com/users/jonahbron/repos","events_url":"https://api.github.com/users/jonahbron/events{/privacy}","received_events_url":"https://api.github.com/users/jonahbron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-26T23:37:41Z","updated_at":"2015-05-27T16:08:08Z","closed_at":null,"body":"In this CodePen, I have some code demonstrating the difference in how `doWhile` behaves when operating on a connectable, and how it behaves when operating on a non-connectable observable.  I believe this is due to it's implementation, in that it concats the observable with itself to achieve the repeating effect.\r\n\r\nhttp://codepen.io/jonahbron/pen/xGRWNo\r\n\r\nIs this a bug?  If not, what's the workaround?"},"comment":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/comments/105979485","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/734#issuecomment-105979485","issue_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/734","id":105979485,"user":{"login":"paulpdaniels","id":2528918,"avatar_url":"https://avatars.githubusercontent.com/u/2528918?v=3","gravatar_id":"","url":"https://api.github.com/users/paulpdaniels","html_url":"https://github.com/paulpdaniels","followers_url":"https://api.github.com/users/paulpdaniels/followers","following_url":"https://api.github.com/users/paulpdaniels/following{/other_user}","gists_url":"https://api.github.com/users/paulpdaniels/gists{/gist_id}","starred_url":"https://api.github.com/users/paulpdaniels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulpdaniels/subscriptions","organizations_url":"https://api.github.com/users/paulpdaniels/orgs","repos_url":"https://api.github.com/users/paulpdaniels/repos","events_url":"https://api.github.com/users/paulpdaniels/events{/privacy}","received_events_url":"https://api.github.com/users/paulpdaniels/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T16:08:08Z","updated_at":"2015-05-27T16:08:08Z","body":"Could you elaborate on what your expected use case for this is? You are right about why this happens, since you are passing in a hot observable and then resubscribing to it, so the second time you subscribe, there are no values left.\r\n\r\nIf you want the connectable observable to behave like a cold observable every time you resubscribe, use `shareReplay()` instead of `share()`"}}