{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/1782","repository_url":"https://api.github.com/repos/vuejs/vue-router","labels_url":"https://api.github.com/repos/vuejs/vue-router/issues/1782/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-router/issues/1782/comments","events_url":"https://api.github.com/repos/vuejs/vue-router/issues/1782/events","html_url":"https://github.com/vuejs/vue-router/issues/1782","id":262758865,"number":1782,"title":"beforeRouteUpdate not fired in a child component","user":{"login":"KKSzymanowski","id":13980973,"avatar_url":"https://avatars3.githubusercontent.com/u/13980973?v=4","gravatar_id":"","url":"https://api.github.com/users/KKSzymanowski","html_url":"https://github.com/KKSzymanowski","followers_url":"https://api.github.com/users/KKSzymanowski/followers","following_url":"https://api.github.com/users/KKSzymanowski/following{/other_user}","gists_url":"https://api.github.com/users/KKSzymanowski/gists{/gist_id}","starred_url":"https://api.github.com/users/KKSzymanowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KKSzymanowski/subscriptions","organizations_url":"https://api.github.com/users/KKSzymanowski/orgs","repos_url":"https://api.github.com/users/KKSzymanowski/repos","events_url":"https://api.github.com/users/KKSzymanowski/events{/privacy}","received_events_url":"https://api.github.com/users/KKSzymanowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-04T11:50:16Z","updated_at":"2017-12-07T15:55:41Z","closed_at":"2017-10-04T15:54:07Z","author_association":"NONE","body":"### Version\r\n2.7.0\r\n\r\n### Reproduction link\r\n[https://jsfiddle.net/mdz263j3/1/](https://jsfiddle.net/mdz263j3/1/)\r\n\r\n### Steps to reproduce\r\nSwitch the page using one of the `1`, `2`, `3` buttons.\r\n\r\n### What is expected?\r\nTwo alerts, one coming from the parent component and one from the child component.\r\n\r\n### What is actually happening?\r\nOnly one alert coming from the parent component.\r\n\r\n---\r\nEven though the `beforeRouteUpdate` hook is broken, watching the route works in both the parent and child component:\r\n```js\r\nwatch: {\r\n    $route() {\r\n        alert('here');\r\n    }\r\n}\r\n```\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/comments/350009947","html_url":"https://github.com/vuejs/vue-router/issues/1782#issuecomment-350009947","issue_url":"https://api.github.com/repos/vuejs/vue-router/issues/1782","id":350009947,"user":{"login":"pittkost","id":8514469,"avatar_url":"https://avatars0.githubusercontent.com/u/8514469?v=4","gravatar_id":"","url":"https://api.github.com/users/pittkost","html_url":"https://github.com/pittkost","followers_url":"https://api.github.com/users/pittkost/followers","following_url":"https://api.github.com/users/pittkost/following{/other_user}","gists_url":"https://api.github.com/users/pittkost/gists{/gist_id}","starred_url":"https://api.github.com/users/pittkost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pittkost/subscriptions","organizations_url":"https://api.github.com/users/pittkost/orgs","repos_url":"https://api.github.com/users/pittkost/repos","events_url":"https://api.github.com/users/pittkost/events{/privacy}","received_events_url":"https://api.github.com/users/pittkost/received_events","type":"User","site_admin":false},"created_at":"2017-12-07T15:55:40Z","updated_at":"2017-12-07T15:55:40Z","author_association":"NONE","body":"@posva Why would having the navigation guard twice be that problematic? I think using refs or a global event bus makes the whole thing much more imperative, also components then become interdependent which brings unnecessary complexity to the application. I'd suggest to reconsider this issue."}}
{"actor":{"display_login":"pittkost"}}