{"action":"created","issue":{"url":"https://api.github.com/repos/deloreanjs/delorean/issues/20","labels_url":"https://api.github.com/repos/deloreanjs/delorean/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/deloreanjs/delorean/issues/20/comments","events_url":"https://api.github.com/repos/deloreanjs/delorean/issues/20/events","html_url":"https://github.com/deloreanjs/delorean/issues/20","id":42193434,"number":20,"title":"Multiple [Flux.mixins.storeListener] gives \"possible EventEmitter memory leak detected. 11 listeners added\"","user":{"login":"svdoever","id":246842,"avatar_url":"https://avatars.githubusercontent.com/u/246842?v=3","gravatar_id":"","url":"https://api.github.com/users/svdoever","html_url":"https://github.com/svdoever","followers_url":"https://api.github.com/users/svdoever/followers","following_url":"https://api.github.com/users/svdoever/following{/other_user}","gists_url":"https://api.github.com/users/svdoever/gists{/gist_id}","starred_url":"https://api.github.com/users/svdoever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svdoever/subscriptions","organizations_url":"https://api.github.com/users/svdoever/orgs","repos_url":"https://api.github.com/users/svdoever/repos","events_url":"https://api.github.com/users/svdoever/events{/privacy}","received_events_url":"https://api.github.com/users/svdoever/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-08T13:02:05Z","updated_at":"2015-02-20T14:40:36Z","closed_at":"2014-09-16T20:27:25Z","body":"I have multiple nested React components, and in each component I want to access state, so I have the following code:\r\n\r\n    var MyComponent = React.createClass({\r\n        mixins: [Flux.mixins.storeListener],\r\n        render: function () {\r\n            var mything = this.state.stores.myStore.mything;\r\n            :\r\n        }\r\n    }\r\n\r\nIf I have this in too many components I get the warning:\r\n\r\n    (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.\r\n\r\nShould I increase the limit, or is this not the approach I should take? I can access \"global state\" as well by doing:\r\n\r\n    this.stores.myStore.store.mything\r\n\r\nbut it feels better to access information in the state of the component."},"comment":{"url":"https://api.github.com/repos/deloreanjs/delorean/issues/comments/75247781","html_url":"https://github.com/deloreanjs/delorean/issues/20#issuecomment-75247781","issue_url":"https://api.github.com/repos/deloreanjs/delorean/issues/20","id":75247781,"user":{"login":"darkyen","id":1041315,"avatar_url":"https://avatars.githubusercontent.com/u/1041315?v=3","gravatar_id":"","url":"https://api.github.com/users/darkyen","html_url":"https://github.com/darkyen","followers_url":"https://api.github.com/users/darkyen/followers","following_url":"https://api.github.com/users/darkyen/following{/other_user}","gists_url":"https://api.github.com/users/darkyen/gists{/gist_id}","starred_url":"https://api.github.com/users/darkyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkyen/subscriptions","organizations_url":"https://api.github.com/users/darkyen/orgs","repos_url":"https://api.github.com/users/darkyen/repos","events_url":"https://api.github.com/users/darkyen/events{/privacy}","received_events_url":"https://api.github.com/users/darkyen/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T14:40:36Z","updated_at":"2015-02-20T14:40:36Z","body":"happens again."}}