{"action":"created","issue":{"url":"https://api.github.com/repos/kenwheeler/mcfly/issues/30","labels_url":"https://api.github.com/repos/kenwheeler/mcfly/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/kenwheeler/mcfly/issues/30/comments","events_url":"https://api.github.com/repos/kenwheeler/mcfly/issues/30/events","html_url":"https://github.com/kenwheeler/mcfly/issues/30","id":55307501,"number":30,"title":"onChange fires after component is unmounted","user":{"login":"capescuba","id":3789939,"avatar_url":"https://avatars.githubusercontent.com/u/3789939?v=3","gravatar_id":"","url":"https://api.github.com/users/capescuba","html_url":"https://github.com/capescuba","followers_url":"https://api.github.com/users/capescuba/followers","following_url":"https://api.github.com/users/capescuba/following{/other_user}","gists_url":"https://api.github.com/users/capescuba/gists{/gist_id}","starred_url":"https://api.github.com/users/capescuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capescuba/subscriptions","organizations_url":"https://api.github.com/users/capescuba/orgs","repos_url":"https://api.github.com/users/capescuba/repos","events_url":"https://api.github.com/users/capescuba/events{/privacy}","received_events_url":"https://api.github.com/users/capescuba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-23T17:19:29Z","updated_at":"2015-01-23T17:26:25Z","closed_at":null,"body":"I have several components using the same store, in this case it has application state, mainly a bunch of boolean's.\r\n\r\nOne of my components calls an action to toggle the value of one of the states, which then emits a change back to the component, but the component has by this time unmounted.  What is the correct use case for handling this?\r\n\r\nThanks,\r\nDave"},"comment":{"url":"https://api.github.com/repos/kenwheeler/mcfly/issues/comments/71229766","html_url":"https://github.com/kenwheeler/mcfly/issues/30#issuecomment-71229766","issue_url":"https://api.github.com/repos/kenwheeler/mcfly/issues/30","id":71229766,"user":{"login":"capescuba","id":3789939,"avatar_url":"https://avatars.githubusercontent.com/u/3789939?v=3","gravatar_id":"","url":"https://api.github.com/users/capescuba","html_url":"https://github.com/capescuba","followers_url":"https://api.github.com/users/capescuba/followers","following_url":"https://api.github.com/users/capescuba/following{/other_user}","gists_url":"https://api.github.com/users/capescuba/gists{/gist_id}","starred_url":"https://api.github.com/users/capescuba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capescuba/subscriptions","organizations_url":"https://api.github.com/users/capescuba/orgs","repos_url":"https://api.github.com/users/capescuba/repos","events_url":"https://api.github.com/users/capescuba/events{/privacy}","received_events_url":"https://api.github.com/users/capescuba/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T17:26:25Z","updated_at":"2015-01-23T17:26:25Z","body":"For now I am checking the _lifeCycleState but it doesn't feel very clean?\r\n\r\nonChange: function () {\r\n    if (this._lifeCycleState != \"UNMOUNTED\") {\r\n            this.setState(...);\r\n    }\r\n}"}}