{"action":"created","issue":{"url":"https://api.github.com/repos/tkhyn/aurelia-flux/issues/1","repository_url":"https://api.github.com/repos/tkhyn/aurelia-flux","labels_url":"https://api.github.com/repos/tkhyn/aurelia-flux/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tkhyn/aurelia-flux/issues/1/comments","events_url":"https://api.github.com/repos/tkhyn/aurelia-flux/issues/1/events","html_url":"https://github.com/tkhyn/aurelia-flux/issues/1","id":132938881,"number":1,"title":"Issue with handlers with respect to the activation life-cycle","user":{"login":"AdamWillden","id":4629144,"avatar_url":"https://avatars.githubusercontent.com/u/4629144?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamWillden","html_url":"https://github.com/AdamWillden","followers_url":"https://api.github.com/users/AdamWillden/followers","following_url":"https://api.github.com/users/AdamWillden/following{/other_user}","gists_url":"https://api.github.com/users/AdamWillden/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamWillden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamWillden/subscriptions","organizations_url":"https://api.github.com/users/AdamWillden/orgs","repos_url":"https://api.github.com/users/AdamWillden/repos","events_url":"https://api.github.com/users/AdamWillden/events{/privacy}","received_events_url":"https://api.github.com/users/AdamWillden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-11T10:42:06Z","updated_at":"2016-02-23T07:36:26Z","closed_at":"2016-02-23T07:36:26Z","body":"Regarding https://github.com/tfrydrychewicz/aurelia-flux/issues/17#issuecomment-182777974: \r\n> @tkhyn I have a custom element (component) that uses your fork of aurelia-flux. When using an if binding on the custom element the lifecycle hooks are called. As such the handlers will work initially. Then once the element is removed and readded the handlers are not hooked up again.\r\n>\r\n> Any chance of a fix for that or is aurelia-flux not in use by you anymore? Would it be simple enough?\r\n\r\nI've created an example app from the skeleton:\r\nhttps://www.dropbox.com/s/ghwbr1eweporcte/flux-issue.zip?dl=0\r\n\r\n```\r\nnpm install\r\njspm install\r\ngulp watch\r\n```\r\n\r\nThis revealed additional info regarding the issue. The issue is two-fold:\r\n\r\n- If the custom element specifies a `detached` callback then the handler is disposed and will not be recreated when the custom element is re-shown. \r\n- If the custom element **does not** specify a `detached` callback then the handler still operates even though the custom element is not on the screen.\r\n\r\nI'd *really* appreciate if you are able to look into this. "},"comment":{"url":"https://api.github.com/repos/tkhyn/aurelia-flux/issues/comments/187584629","html_url":"https://github.com/tkhyn/aurelia-flux/issues/1#issuecomment-187584629","issue_url":"https://api.github.com/repos/tkhyn/aurelia-flux/issues/1","id":187584629,"user":{"login":"AdamWillden","id":4629144,"avatar_url":"https://avatars.githubusercontent.com/u/4629144?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamWillden","html_url":"https://github.com/AdamWillden","followers_url":"https://api.github.com/users/AdamWillden/followers","following_url":"https://api.github.com/users/AdamWillden/following{/other_user}","gists_url":"https://api.github.com/users/AdamWillden/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamWillden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamWillden/subscriptions","organizations_url":"https://api.github.com/users/AdamWillden/orgs","repos_url":"https://api.github.com/users/AdamWillden/repos","events_url":"https://api.github.com/users/AdamWillden/events{/privacy}","received_events_url":"https://api.github.com/users/AdamWillden/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T07:36:26Z","updated_at":"2016-02-23T07:36:26Z","body":"Really, it is not a problem.  I wouldn't have had the time to fix it so dont expect that you would have either. \r\n\r\nThanks for making it work!"}}