{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/4205","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/4205/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/4205/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/4205/events","html_url":"https://github.com/vuejs/vue/issues/4205","id":189388986,"number":4205,"title":"Lifecycle hooks are not triggered for a component which is wrapped by element with v-if directive. ","user":{"login":"abiaskosty","id":3635715,"avatar_url":"https://avatars.githubusercontent.com/u/3635715?v=3","gravatar_id":"","url":"https://api.github.com/users/abiaskosty","html_url":"https://github.com/abiaskosty","followers_url":"https://api.github.com/users/abiaskosty/followers","following_url":"https://api.github.com/users/abiaskosty/following{/other_user}","gists_url":"https://api.github.com/users/abiaskosty/gists{/gist_id}","starred_url":"https://api.github.com/users/abiaskosty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abiaskosty/subscriptions","organizations_url":"https://api.github.com/users/abiaskosty/orgs","repos_url":"https://api.github.com/users/abiaskosty/repos","events_url":"https://api.github.com/users/abiaskosty/events{/privacy}","received_events_url":"https://api.github.com/users/abiaskosty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T13:16:21Z","updated_at":"2016-11-15T13:36:26Z","closed_at":"2016-11-15T13:36:26Z","body":"### Vue.js version\r\n2.0.5\r\n\r\n### Reproduction Link\r\nhttp://jsfiddle.net/aleksey_beskosty/b2dn5twf/\r\n\r\n### Steps to reproduce\r\nOpen browser console and run jsfiddle code. Deselect checkbox 'Trigger'.\r\n\r\n### What is Expected?\r\n'mounted' is printed each time when trigger changes.\r\n\r\n### What is actually happening?\r\n'mounted' is printed only once when its parent component is rendered.\r\n\r\n-----\r\nIn my case, I have several sibling elements and render only one of them depending on v-if condition. Each element has different markup but one child component is the same. I expect that \"the element and its contained directives / components are destroyed and re-constructed during toggles\" as stated in docs. However, while content of conditional elements is changed, hooks on child components are not called."}}
{"actor":{"display_login":"yyx990803"}}