{"action":"created","issue":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/978","labels_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/978/labels{/name}","comments_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/978/comments","events_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/978/events","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/978","id":111976659,"number":978,"title":"Behavior of #zip with #groupBy & #publish","user":{"login":"Nupf","id":5137812,"avatar_url":"https://avatars.githubusercontent.com/u/5137812?v=3","gravatar_id":"","url":"https://api.github.com/users/Nupf","html_url":"https://github.com/Nupf","followers_url":"https://api.github.com/users/Nupf/followers","following_url":"https://api.github.com/users/Nupf/following{/other_user}","gists_url":"https://api.github.com/users/Nupf/gists{/gist_id}","starred_url":"https://api.github.com/users/Nupf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nupf/subscriptions","organizations_url":"https://api.github.com/users/Nupf/orgs","repos_url":"https://api.github.com/users/Nupf/repos","events_url":"https://api.github.com/users/Nupf/events{/privacy}","received_events_url":"https://api.github.com/users/Nupf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-17T18:12:14Z","updated_at":"2015-10-19T19:42:29Z","closed_at":null,"body":"Why does only the grouped observable of child emit values when zipped?\r\n\r\n When subscribing to the grouped observables on their own, both emit their respective values\r\nsee https://jsbin.com/coqeqaxoci/edit?js,console\r\n````javascript\r\nvar parent = Rx.Observable.from([1,2,3]).publish();\r\nvar child = parent.map(x => x).publish();\r\n\r\nvar groupedParent = parent.groupBy(x => x);\r\nvar groupedChild = child.groupBy(x => x);\r\n\r\nRx.Observable.zip([groupedParent, groupedChild])\r\n  .subscribe(groups => {\r\n    groups[0].subscribe(x => console.log('zipped parent ' + x)); // -> nothing\r\n    groups[1].subscribe(x => console.log('zipped child ' + x)); // -> emits\r\n  });\r\n\r\n\r\ngroupedChild.subscribe(group => {\r\n  group.subscribe(value => console.log('child ' + value)); // -> emits\r\n});\r\n\r\ngroupedParent.subscribe(group => {\r\n  group.subscribe(value => console.log('parent ' + value)); // -> emits\r\n});\r\n\r\nchild.connect();\r\nparent.connect();\r\n````"},"comment":{"url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/comments/149323792","html_url":"https://github.com/Reactive-Extensions/RxJS/issues/978#issuecomment-149323792","issue_url":"https://api.github.com/repos/Reactive-Extensions/RxJS/issues/978","id":149323792,"user":{"login":"Nupf","id":5137812,"avatar_url":"https://avatars.githubusercontent.com/u/5137812?v=3","gravatar_id":"","url":"https://api.github.com/users/Nupf","html_url":"https://github.com/Nupf","followers_url":"https://api.github.com/users/Nupf/followers","following_url":"https://api.github.com/users/Nupf/following{/other_user}","gists_url":"https://api.github.com/users/Nupf/gists{/gist_id}","starred_url":"https://api.github.com/users/Nupf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nupf/subscriptions","organizations_url":"https://api.github.com/users/Nupf/orgs","repos_url":"https://api.github.com/users/Nupf/repos","events_url":"https://api.github.com/users/Nupf/events{/privacy}","received_events_url":"https://api.github.com/users/Nupf/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T19:42:29Z","updated_at":"2015-10-19T19:42:29Z","body":"Ok, so here's what I've got:\r\n\r\nhttp://stackoverflow.com/questions/33193130/rxjs-zip-groups-created-using-groupby\r\n\r\nThe parent groups inside .zip doesn't emit values, because it has already emitted its values BEFORE it's subscribed to. Why is that?\r\n\r\nThat behavior seems wrong to me."}}