{"action":"created","issue":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/4278","repository_url":"https://api.github.com/repos/ReactTraining/react-router","labels_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4278/labels{/name}","comments_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4278/comments","events_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4278/events","html_url":"https://github.com/ReactTraining/react-router/issues/4278","id":195344485,"number":4278,"title":"v4 Router.onUpdate removed","user":{"login":"baronnoraz","id":131762,"avatar_url":"https://avatars.githubusercontent.com/u/131762?v=3","gravatar_id":"","url":"https://api.github.com/users/baronnoraz","html_url":"https://github.com/baronnoraz","followers_url":"https://api.github.com/users/baronnoraz/followers","following_url":"https://api.github.com/users/baronnoraz/following{/other_user}","gists_url":"https://api.github.com/users/baronnoraz/gists{/gist_id}","starred_url":"https://api.github.com/users/baronnoraz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baronnoraz/subscriptions","organizations_url":"https://api.github.com/users/baronnoraz/orgs","repos_url":"https://api.github.com/users/baronnoraz/repos","events_url":"https://api.github.com/users/baronnoraz/events{/privacy}","received_events_url":"https://api.github.com/users/baronnoraz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-13T19:24:56Z","updated_at":"2017-01-15T17:42:17Z","closed_at":"2016-12-13T21:57:29Z","body":"First, my apologies.  I'm not sure if this is a bug or a purposeful change for v4.  I was looking to integrate `react-ga` (a google analytics component), which would typically hook into the `onUpdate` function on the `Router`.  \r\n\r\nHowever, it appears that the `onUpdate` is missing or has been removed in v4.  Assuming the latter, what is the recommended approach to hooking into the router change with v4?  "},"comment":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/comments/272710795","html_url":"https://github.com/ReactTraining/react-router/issues/4278#issuecomment-272710795","issue_url":"https://api.github.com/repos/ReactTraining/react-router/issues/4278","id":272710795,"user":{"login":"ahmedelgabri","id":63876,"avatar_url":"https://avatars.githubusercontent.com/u/63876?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmedelgabri","html_url":"https://github.com/ahmedelgabri","followers_url":"https://api.github.com/users/ahmedelgabri/followers","following_url":"https://api.github.com/users/ahmedelgabri/following{/other_user}","gists_url":"https://api.github.com/users/ahmedelgabri/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmedelgabri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmedelgabri/subscriptions","organizations_url":"https://api.github.com/users/ahmedelgabri/orgs","repos_url":"https://api.github.com/users/ahmedelgabri/repos","events_url":"https://api.github.com/users/ahmedelgabri/events{/privacy}","received_events_url":"https://api.github.com/users/ahmedelgabri/received_events","type":"User","site_admin":false},"created_at":"2017-01-15T17:42:17Z","updated_at":"2017-01-15T17:42:17Z","body":"Maybe you can do something like this? \r\n\r\n```jsx\r\n<Match exactly pattern='/foo' render={props => {\r\n  // your analytics logic here?\r\n  return <Component {...props} />\r\n}} />\r\n```"}}
{"actor":{"display_login":"ahmedelgabri"}}