{"action":"created","issue":{"url":"https://api.github.com/repos/cyclejs/cycle-dom/issues/32","labels_url":"https://api.github.com/repos/cyclejs/cycle-dom/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/cyclejs/cycle-dom/issues/32/comments","events_url":"https://api.github.com/repos/cyclejs/cycle-dom/issues/32/events","html_url":"https://github.com/cyclejs/cycle-dom/issues/32","id":101282163,"number":32,"title":"regarding responses.props","user":{"login":"Frikki","id":180569,"avatar_url":"https://avatars.githubusercontent.com/u/180569?v=3","gravatar_id":"","url":"https://api.github.com/users/Frikki","html_url":"https://github.com/Frikki","followers_url":"https://api.github.com/users/Frikki/followers","following_url":"https://api.github.com/users/Frikki/following{/other_user}","gists_url":"https://api.github.com/users/Frikki/gists{/gist_id}","starred_url":"https://api.github.com/users/Frikki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frikki/subscriptions","organizations_url":"https://api.github.com/users/Frikki/orgs","repos_url":"https://api.github.com/users/Frikki/repos","events_url":"https://api.github.com/users/Frikki/events{/privacy}","received_events_url":"https://api.github.com/users/Frikki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-16T17:27:23Z","updated_at":"2015-08-16T19:33:09Z","closed_at":null,"body":"I really don’t know if this is the right place to ask, but when I make a custom element, which takes a `responses` argument in its \"constructor\" function. I can access all props with `responses.props.getAll()`, which returns a stream of props as objects. Now, assume I want to add properties to the props object. How would I go about doing that? I want to have either a new stream with the modified props object, or the modified props object added to the original stream.\r\n\r\nI know this related more to Rx than cycle-dom, but I have searched the Interwebs, stackoverflow, etc., without any luck."},"comment":{"url":"https://api.github.com/repos/cyclejs/cycle-dom/issues/comments/131612244","html_url":"https://github.com/cyclejs/cycle-dom/issues/32#issuecomment-131612244","issue_url":"https://api.github.com/repos/cyclejs/cycle-dom/issues/32","id":131612244,"user":{"login":"staltz","id":90512,"avatar_url":"https://avatars.githubusercontent.com/u/90512?v=3","gravatar_id":"","url":"https://api.github.com/users/staltz","html_url":"https://github.com/staltz","followers_url":"https://api.github.com/users/staltz/followers","following_url":"https://api.github.com/users/staltz/following{/other_user}","gists_url":"https://api.github.com/users/staltz/gists{/gist_id}","starred_url":"https://api.github.com/users/staltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staltz/subscriptions","organizations_url":"https://api.github.com/users/staltz/orgs","repos_url":"https://api.github.com/users/staltz/repos","events_url":"https://api.github.com/users/staltz/events{/privacy}","received_events_url":"https://api.github.com/users/staltz/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T19:33:09Z","updated_at":"2015-08-16T19:33:09Z","body":"> returns a stream of props as objects. Now, assume I want to add properties to the props object.\r\n\r\n> returns a **stream**... I want to add\r\n\r\nYou can't add anything to a stream.\r\n\r\n> I want to have either a new stream with the modified props object\r\n\r\nYes, that's how you do it.\r\n\r\n```js\r\nresponses.props.getAll().map(oldProps => {\r\n  oldProps.newProp = 'foo'; // mutation, but does the job\r\n  return oldProps;\r\n});\r\n```"}}