{"action":"created","issue":{"url":"https://api.github.com/repos/vtex-apps/storefront-sdk/issues/29","labels_url":"https://api.github.com/repos/vtex-apps/storefront-sdk/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/vtex-apps/storefront-sdk/issues/29/comments","events_url":"https://api.github.com/repos/vtex-apps/storefront-sdk/issues/29/events","html_url":"https://github.com/vtex-apps/storefront-sdk/pull/29","id":116386412,"number":29,"title":"Add router onEnter and onLeave hooks","user":{"login":"brenoc","id":284515,"avatar_url":"https://avatars.githubusercontent.com/u/284515?v=3","gravatar_id":"","url":"https://api.github.com/users/brenoc","html_url":"https://github.com/brenoc","followers_url":"https://api.github.com/users/brenoc/followers","following_url":"https://api.github.com/users/brenoc/following{/other_user}","gists_url":"https://api.github.com/users/brenoc/gists{/gist_id}","starred_url":"https://api.github.com/users/brenoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brenoc/subscriptions","organizations_url":"https://api.github.com/users/brenoc/orgs","repos_url":"https://api.github.com/users/brenoc/repos","events_url":"https://api.github.com/users/brenoc/events{/privacy}","received_events_url":"https://api.github.com/users/brenoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T17:48:30Z","updated_at":"2015-11-11T18:04:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vtex-apps/storefront-sdk/pulls/29","html_url":"https://github.com/vtex-apps/storefront-sdk/pull/29","diff_url":"https://github.com/vtex-apps/storefront-sdk/pull/29.diff","patch_url":"https://github.com/vtex-apps/storefront-sdk/pull/29.patch"},"body":"The route component should add a static method called `onEnter` and/or `onLeave`.\r\n\r\nReact Router docs about those functions: https://github.com/rackt/react-router/blob/master/docs/API.md#onenternextstate-replacestate-callback"},"comment":{"url":"https://api.github.com/repos/vtex-apps/storefront-sdk/issues/comments/155863083","html_url":"https://github.com/vtex-apps/storefront-sdk/pull/29#issuecomment-155863083","issue_url":"https://api.github.com/repos/vtex-apps/storefront-sdk/issues/29","id":155863083,"user":{"login":"tamorim","id":5040487,"avatar_url":"https://avatars.githubusercontent.com/u/5040487?v=3","gravatar_id":"","url":"https://api.github.com/users/tamorim","html_url":"https://github.com/tamorim","followers_url":"https://api.github.com/users/tamorim/followers","following_url":"https://api.github.com/users/tamorim/following{/other_user}","gists_url":"https://api.github.com/users/tamorim/gists{/gist_id}","starred_url":"https://api.github.com/users/tamorim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamorim/subscriptions","organizations_url":"https://api.github.com/users/tamorim/orgs","repos_url":"https://api.github.com/users/tamorim/repos","events_url":"https://api.github.com/users/tamorim/events{/privacy}","received_events_url":"https://api.github.com/users/tamorim/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T18:04:06Z","updated_at":"2015-11-11T18:04:06Z","body":"One thing that I didn't get from the docs is: is this optional or needed?"}}