{"action":"reopened","issue":{"url":"https://api.github.com/repos/staltz/xstream/issues/69","repository_url":"https://api.github.com/repos/staltz/xstream","labels_url":"https://api.github.com/repos/staltz/xstream/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/staltz/xstream/issues/69/comments","events_url":"https://api.github.com/repos/staltz/xstream/issues/69/events","html_url":"https://github.com/staltz/xstream/issues/69","id":163942998,"number":69,"title":"Remembered stream does not add listener when source is created directly via 'xs.create'","user":{"login":"ntilwalli","id":8410254,"avatar_url":"https://avatars.githubusercontent.com/u/8410254?v=3","gravatar_id":"","url":"https://api.github.com/users/ntilwalli","html_url":"https://github.com/ntilwalli","followers_url":"https://api.github.com/users/ntilwalli/followers","following_url":"https://api.github.com/users/ntilwalli/following{/other_user}","gists_url":"https://api.github.com/users/ntilwalli/gists{/gist_id}","starred_url":"https://api.github.com/users/ntilwalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntilwalli/subscriptions","organizations_url":"https://api.github.com/users/ntilwalli/orgs","repos_url":"https://api.github.com/users/ntilwalli/repos","events_url":"https://api.github.com/users/ntilwalli/events{/privacy}","received_events_url":"https://api.github.com/users/ntilwalli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/staltz/xstream/labels/issue%20is%20bug","name":"issue is bug","color":"ee0701"},{"url":"https://api.github.com/repos/staltz/xstream/labels/weight%202%20(could)","name":"weight 2 (could)","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-05T20:47:27Z","updated_at":"2016-07-06T18:29:40Z","closed_at":null,"body":"I noticed this odd behavior (what looks like a bug).  When `remember` is called directly on a raw stream created via `xs.create` that has no producer (i.e. which will emit based on the `shamefully*` methods), it doesn't add listeners since the `_prod` property is `undefined`.  \r\n```\r\nimport xs from 'xstream'\r\n\r\nconst test$ = xs.create()\r\n\r\n// This line works\r\n//const oddBehavior$ = test$  \r\n\r\n// This line does not work. Why?\r\nconst oddBehavior$ = test$.remember()\r\n\r\noddBehavior$.addListener({\r\n  next: n => bin.log(`Next: ${n}`),\r\n  error: e => bin.log(`Error: ${e}`),\r\n  complete: () => bin.log(`Complete`)\r\n})\r\n\r\ntest$.shamefullySendNext(1)\r\n```\r\nYou can see the issue here: http://www.webpackbin.com/4JFCBWrL-"}}
{"actor":{"display_login":"staltz"}}