{"action":"opened","issue":{"url":"https://api.github.com/repos/cyclejs/cyclejs/issues/824","repository_url":"https://api.github.com/repos/cyclejs/cyclejs","labels_url":"https://api.github.com/repos/cyclejs/cyclejs/issues/824/labels{/name}","comments_url":"https://api.github.com/repos/cyclejs/cyclejs/issues/824/comments","events_url":"https://api.github.com/repos/cyclejs/cyclejs/issues/824/events","html_url":"https://github.com/cyclejs/cyclejs/issues/824","id":336586887,"node_id":"MDU6SXNzdWUzMzY1ODY4ODc=","number":824,"title":"setupReusable's dispose is wrong","user":{"login":"staltz","id":90512,"node_id":"MDQ6VXNlcjkwNTEy","avatar_url":"https://avatars3.githubusercontent.com/u/90512?v=4","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},"labels":[{"id":331504548,"node_id":"MDU6TGFiZWwzMzE1MDQ1NDg=","url":"https://api.github.com/repos/cyclejs/cyclejs/labels/issue%20is%20bug","name":"issue is bug","color":"FF3D3D","default":false},{"id":331504531,"node_id":"MDU6TGFiZWwzMzE1MDQ1MzE=","url":"https://api.github.com/repos/cyclejs/cyclejs/labels/priority%203%20(should)","name":"priority 3 (should)","color":"888888","default":false},{"id":331729249,"node_id":"MDU6TGFiZWwzMzE3MjkyNDk=","url":"https://api.github.com/repos/cyclejs/cyclejs/labels/scope:%20run","name":"scope: run","color":"e0ffe0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-28T11:45:36Z","updated_at":"2018-06-28T11:45:36Z","closed_at":null,"author_association":"MEMBER","body":"**Code to reproduce the issue:**\r\n\r\n```js\r\nimport {setupReusable} from '@cycle/run';\r\nconst {sources, run} = setupReusable(drivers);\r\n// ...\r\nconst sinks = main(sources);\r\nconst dispose = run(sinks);\r\n// ...\r\ndispose();\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n`dispose()` should not dispose all resources, it should dispose only what was *exclusively* used by `main`.\r\n\r\n**Actual behavior:**\r\n\r\n`dispose()` disposes everything, essentially making the engine not reusable.\r\n\r\n**Versions of packages used:**\r\n\r\ncycle/run 4.3.0"}}
{"actor":{"display_login":"staltz"}}