{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/8076","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/8076/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/8076/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/8076/events","html_url":"https://github.com/vuejs/vue/issues/8076","id":317207926,"number":8076,"title":"component calls update hook after it is destroyed","user":{"login":"BL-Lac149597870","id":31134008,"avatar_url":"https://avatars0.githubusercontent.com/u/31134008?v=4","gravatar_id":"","url":"https://api.github.com/users/BL-Lac149597870","html_url":"https://github.com/BL-Lac149597870","followers_url":"https://api.github.com/users/BL-Lac149597870/followers","following_url":"https://api.github.com/users/BL-Lac149597870/following{/other_user}","gists_url":"https://api.github.com/users/BL-Lac149597870/gists{/gist_id}","starred_url":"https://api.github.com/users/BL-Lac149597870/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BL-Lac149597870/subscriptions","organizations_url":"https://api.github.com/users/BL-Lac149597870/orgs","repos_url":"https://api.github.com/users/BL-Lac149597870/repos","events_url":"https://api.github.com/users/BL-Lac149597870/events{/privacy}","received_events_url":"https://api.github.com/users/BL-Lac149597870/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-24T12:43:04Z","updated_at":"2018-04-25T15:38:02Z","closed_at":null,"author_association":"NONE","body":"### Version\r\n2.5.2\r\n\r\n### Reproduction link\r\n[https://codesandbox.io/s/k10v7qpmpv](https://codesandbox.io/s/k10v7qpmpv)\r\n\r\n### Steps to reproduce\r\n1、click the home link\r\n2、click the test link\r\n\r\n### What is expected?\r\nafter the Home component destroyed,its updated hook should not be called\r\n\r\n### What is actually happening?\r\nafter the Home component destroyed,its updated hook is called\r\n\r\n---\r\nhere is the log information\r\n\r\nHome beforeCreate\r\nHome created\r\nHome beforeMount\r\nHome mounted\r\nTest beforeCreate\r\nTest created\r\nTest beforeMount\r\nHome beforeDestroy\r\nHome destroyed\r\nTest mounted\r\nHome updated\r\n\r\nwhy the Home component can call updated hook after it is destroyed?\r\nIs Vue designed to do so?\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/384332380","html_url":"https://github.com/vuejs/vue/issues/8076#issuecomment-384332380","issue_url":"https://api.github.com/repos/vuejs/vue/issues/8076","id":384332380,"user":{"login":"mbj36","id":9936881,"avatar_url":"https://avatars0.githubusercontent.com/u/9936881?v=4","gravatar_id":"","url":"https://api.github.com/users/mbj36","html_url":"https://github.com/mbj36","followers_url":"https://api.github.com/users/mbj36/followers","following_url":"https://api.github.com/users/mbj36/following{/other_user}","gists_url":"https://api.github.com/users/mbj36/gists{/gist_id}","starred_url":"https://api.github.com/users/mbj36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbj36/subscriptions","organizations_url":"https://api.github.com/users/mbj36/orgs","repos_url":"https://api.github.com/users/mbj36/repos","events_url":"https://api.github.com/users/mbj36/events{/privacy}","received_events_url":"https://api.github.com/users/mbj36/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T15:38:02Z","updated_at":"2018-04-25T15:38:02Z","author_association":"NONE","body":"@BL-Lac149597870 In your reproduction link, you have not defined your components as `.vue` component. "}}
{"actor":{"display_login":"mbj36"}}