{"action":"created","issue":{"url":"https://api.github.com/repos/zenparsing/zen-observable/issues/42","repository_url":"https://api.github.com/repos/zenparsing/zen-observable","labels_url":"https://api.github.com/repos/zenparsing/zen-observable/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/zenparsing/zen-observable/issues/42/comments","events_url":"https://api.github.com/repos/zenparsing/zen-observable/issues/42/events","html_url":"https://github.com/zenparsing/zen-observable/issues/42","id":295293444,"number":42,"title":"How to combine 2 observables together.","user":{"login":"lifeiscontent","id":180963,"avatar_url":"https://avatars3.githubusercontent.com/u/180963?v=4","gravatar_id":"","url":"https://api.github.com/users/lifeiscontent","html_url":"https://github.com/lifeiscontent","followers_url":"https://api.github.com/users/lifeiscontent/followers","following_url":"https://api.github.com/users/lifeiscontent/following{/other_user}","gists_url":"https://api.github.com/users/lifeiscontent/gists{/gist_id}","starred_url":"https://api.github.com/users/lifeiscontent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifeiscontent/subscriptions","organizations_url":"https://api.github.com/users/lifeiscontent/orgs","repos_url":"https://api.github.com/users/lifeiscontent/repos","events_url":"https://api.github.com/users/lifeiscontent/events{/privacy}","received_events_url":"https://api.github.com/users/lifeiscontent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-07T21:09:02Z","updated_at":"2018-02-09T16:46:12Z","closed_at":null,"author_association":"NONE","body":"Hi, I'm wondering how to combine observables together.\r\n\r\ne.g.\r\n\r\n``` js\r\nconst myObservableUsername = new Observable(...);\r\nconst githubObservable = new Observable(...);\r\n\r\nconst obs = Observable.from([myObservableUsername, githubObservable]).subscribe(console.log);\r\n\r\nobs.next('lifeiscontent'); // JSON response of github from username.\r\n```\r\n\r\nif someone can point me to examples on how to do something like this, it would be ideal. Thanks!"},"comment":{"url":"https://api.github.com/repos/zenparsing/zen-observable/issues/comments/364488951","html_url":"https://github.com/zenparsing/zen-observable/issues/42#issuecomment-364488951","issue_url":"https://api.github.com/repos/zenparsing/zen-observable/issues/42","id":364488951,"user":{"login":"zenparsing","id":5995084,"avatar_url":"https://avatars1.githubusercontent.com/u/5995084?v=4","gravatar_id":"","url":"https://api.github.com/users/zenparsing","html_url":"https://github.com/zenparsing","followers_url":"https://api.github.com/users/zenparsing/followers","following_url":"https://api.github.com/users/zenparsing/following{/other_user}","gists_url":"https://api.github.com/users/zenparsing/gists{/gist_id}","starred_url":"https://api.github.com/users/zenparsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenparsing/subscriptions","organizations_url":"https://api.github.com/users/zenparsing/orgs","repos_url":"https://api.github.com/users/zenparsing/repos","events_url":"https://api.github.com/users/zenparsing/events{/privacy}","received_events_url":"https://api.github.com/users/zenparsing/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T16:46:12Z","updated_at":"2018-02-09T16:46:12Z","author_association":"OWNER","body":"@lifeiscontent \r\n\r\nIt will depend on how you want to merge together values from multiple Observables over time - there are a couple of ways to do it. From your example, it looks like you might want something like \"combineLatest\", which emits the most recent values from each input.\r\n\r\nCheck out the functions [here](https://github.com/zenparsing/zen-observable/blob/869d95cf5ec2f4fcfae23720fd80b3e704513f23/src/extras.js) for some ideas.\r\n\r\nWith version 0.8.3 of this library you can try to import those helpers directly:\r\n\r\n```js\r\nimport { combineLatest } from 'zen-observable/extras';\r\n```\r\n\r\nBut note that the \"extras\" module is currently experimental.\r\n"}}
{"actor":{"display_login":"zenparsing"}}