{"action":"opened","number":1137,"pull_request":{"url":"https://api.github.com/repos/rackt/react-router/pulls/1137","id":34257639,"html_url":"https://github.com/rackt/react-router/pull/1137","diff_url":"https://github.com/rackt/react-router/pull/1137.diff","patch_url":"https://github.com/rackt/react-router/pull/1137.patch","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1137","number":1137,"state":"open","locked":false,"title":"transition.notFound() feature","user":{"login":"kastigar","id":338570,"avatar_url":"https://avatars.githubusercontent.com/u/338570?v=3","gravatar_id":"","url":"https://api.github.com/users/kastigar","html_url":"https://github.com/kastigar","followers_url":"https://api.github.com/users/kastigar/followers","following_url":"https://api.github.com/users/kastigar/following{/other_user}","gists_url":"https://api.github.com/users/kastigar/gists{/gist_id}","starred_url":"https://api.github.com/users/kastigar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kastigar/subscriptions","organizations_url":"https://api.github.com/users/kastigar/orgs","repos_url":"https://api.github.com/users/kastigar/repos","events_url":"https://api.github.com/users/kastigar/events{/privacy}","received_events_url":"https://api.github.com/users/kastigar/received_events","type":"User","site_admin":false},"body":"This PR adds feature to prevent rendering current route handler and then to render not-found route handler in transition hooks.\r\n\r\n```javascript\r\n\r\nclass SomeComponent extends React.Component {\r\n  static willTransitionTo(transition, params, query, callback) {\r\n    fetchUser(params.userId).then((status, res)=> {\r\n      if (status === 404) {\r\n        transition.notFound();\r\n      } else {\r\n         // ...\r\n      }\r\n    });\r\n  }\r\n}\r\n```","created_at":"2015-04-28T11:37:34Z","updated_at":"2015-04-28T11:37:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackt/react-router/pulls/1137/commits","review_comments_url":"https://api.github.com/repos/rackt/react-router/pulls/1137/comments","review_comment_url":"https://api.github.com/repos/rackt/react-router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1137/comments","statuses_url":"https://api.github.com/repos/rackt/react-router/statuses/a45daa5a5a35e66df72dec784da0e6d7ff1d5e67","head":{"label":"kastigar:not_found_abort","ref":"not_found_abort","sha":"a45daa5a5a35e66df72dec784da0e6d7ff1d5e67","user":{"login":"kastigar","id":338570,"avatar_url":"https://avatars.githubusercontent.com/u/338570?v=3","gravatar_id":"","url":"https://api.github.com/users/kastigar","html_url":"https://github.com/kastigar","followers_url":"https://api.github.com/users/kastigar/followers","following_url":"https://api.github.com/users/kastigar/following{/other_user}","gists_url":"https://api.github.com/users/kastigar/gists{/gist_id}","starred_url":"https://api.github.com/users/kastigar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kastigar/subscriptions","organizations_url":"https://api.github.com/users/kastigar/orgs","repos_url":"https://api.github.com/users/kastigar/repos","events_url":"https://api.github.com/users/kastigar/events{/privacy}","received_events_url":"https://api.github.com/users/kastigar/received_events","type":"User","site_admin":false},"repo":{"id":34522145,"name":"react-router","full_name":"kastigar/react-router","owner":{"login":"kastigar","id":338570,"avatar_url":"https://avatars.githubusercontent.com/u/338570?v=3","gravatar_id":"","url":"https://api.github.com/users/kastigar","html_url":"https://github.com/kastigar","followers_url":"https://api.github.com/users/kastigar/followers","following_url":"https://api.github.com/users/kastigar/following{/other_user}","gists_url":"https://api.github.com/users/kastigar/gists{/gist_id}","starred_url":"https://api.github.com/users/kastigar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kastigar/subscriptions","organizations_url":"https://api.github.com/users/kastigar/orgs","repos_url":"https://api.github.com/users/kastigar/repos","events_url":"https://api.github.com/users/kastigar/events{/privacy}","received_events_url":"https://api.github.com/users/kastigar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kastigar/react-router","description":"A complete routing solution for React.js","fork":true,"url":"https://api.github.com/repos/kastigar/react-router","forks_url":"https://api.github.com/repos/kastigar/react-router/forks","keys_url":"https://api.github.com/repos/kastigar/react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kastigar/react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kastigar/react-router/teams","hooks_url":"https://api.github.com/repos/kastigar/react-router/hooks","issue_events_url":"https://api.github.com/repos/kastigar/react-router/issues/events{/number}","events_url":"https://api.github.com/repos/kastigar/react-router/events","assignees_url":"https://api.github.com/repos/kastigar/react-router/assignees{/user}","branches_url":"https://api.github.com/repos/kastigar/react-router/branches{/branch}","tags_url":"https://api.github.com/repos/kastigar/react-router/tags","blobs_url":"https://api.github.com/repos/kastigar/react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kastigar/react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kastigar/react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/kastigar/react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kastigar/react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/kastigar/react-router/languages","stargazers_url":"https://api.github.com/repos/kastigar/react-router/stargazers","contributors_url":"https://api.github.com/repos/kastigar/react-router/contributors","subscribers_url":"https://api.github.com/repos/kastigar/react-router/subscribers","subscription_url":"https://api.github.com/repos/kastigar/react-router/subscription","commits_url":"https://api.github.com/repos/kastigar/react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/kastigar/react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/kastigar/react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/kastigar/react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/kastigar/react-router/contents/{+path}","compare_url":"https://api.github.com/repos/kastigar/react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kastigar/react-router/merges","archive_url":"https://api.github.com/repos/kastigar/react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kastigar/react-router/downloads","issues_url":"https://api.github.com/repos/kastigar/react-router/issues{/number}","pulls_url":"https://api.github.com/repos/kastigar/react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/kastigar/react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/kastigar/react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kastigar/react-router/labels{/name}","releases_url":"https://api.github.com/repos/kastigar/react-router/releases{/id}","created_at":"2015-04-24T14:05:49Z","updated_at":"2015-04-24T14:05:49Z","pushed_at":"2015-04-28T10:25:44Z","git_url":"git://github.com/kastigar/react-router.git","ssh_url":"git@github.com:kastigar/react-router.git","clone_url":"https://github.com/kastigar/react-router.git","svn_url":"https://github.com/kastigar/react-router","homepage":"","size":9405,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rackt:master","ref":"master","sha":"a141ab5555e807424700ea1527820718588880b7","user":{"login":"rackt","id":8261421,"avatar_url":"https://avatars.githubusercontent.com/u/8261421?v=3","gravatar_id":"","url":"https://api.github.com/users/rackt","html_url":"https://github.com/rackt","followers_url":"https://api.github.com/users/rackt/followers","following_url":"https://api.github.com/users/rackt/following{/other_user}","gists_url":"https://api.github.com/users/rackt/gists{/gist_id}","starred_url":"https://api.github.com/users/rackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackt/subscriptions","organizations_url":"https://api.github.com/users/rackt/orgs","repos_url":"https://api.github.com/users/rackt/repos","events_url":"https://api.github.com/users/rackt/events{/privacy}","received_events_url":"https://api.github.com/users/rackt/received_events","type":"Organization","site_admin":false},"repo":{"id":19872456,"name":"react-router","full_name":"rackt/react-router","owner":{"login":"rackt","id":8261421,"avatar_url":"https://avatars.githubusercontent.com/u/8261421?v=3","gravatar_id":"","url":"https://api.github.com/users/rackt","html_url":"https://github.com/rackt","followers_url":"https://api.github.com/users/rackt/followers","following_url":"https://api.github.com/users/rackt/following{/other_user}","gists_url":"https://api.github.com/users/rackt/gists{/gist_id}","starred_url":"https://api.github.com/users/rackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackt/subscriptions","organizations_url":"https://api.github.com/users/rackt/orgs","repos_url":"https://api.github.com/users/rackt/repos","events_url":"https://api.github.com/users/rackt/events{/privacy}","received_events_url":"https://api.github.com/users/rackt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackt/react-router","description":"A complete routing solution for React.js","fork":false,"url":"https://api.github.com/repos/rackt/react-router","forks_url":"https://api.github.com/repos/rackt/react-router/forks","keys_url":"https://api.github.com/repos/rackt/react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackt/react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackt/react-router/teams","hooks_url":"https://api.github.com/repos/rackt/react-router/hooks","issue_events_url":"https://api.github.com/repos/rackt/react-router/issues/events{/number}","events_url":"https://api.github.com/repos/rackt/react-router/events","assignees_url":"https://api.github.com/repos/rackt/react-router/assignees{/user}","branches_url":"https://api.github.com/repos/rackt/react-router/branches{/branch}","tags_url":"https://api.github.com/repos/rackt/react-router/tags","blobs_url":"https://api.github.com/repos/rackt/react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackt/react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackt/react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackt/react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackt/react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/rackt/react-router/languages","stargazers_url":"https://api.github.com/repos/rackt/react-router/stargazers","contributors_url":"https://api.github.com/repos/rackt/react-router/contributors","subscribers_url":"https://api.github.com/repos/rackt/react-router/subscribers","subscription_url":"https://api.github.com/repos/rackt/react-router/subscription","commits_url":"https://api.github.com/repos/rackt/react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackt/react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackt/react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackt/react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackt/react-router/contents/{+path}","compare_url":"https://api.github.com/repos/rackt/react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackt/react-router/merges","archive_url":"https://api.github.com/repos/rackt/react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackt/react-router/downloads","issues_url":"https://api.github.com/repos/rackt/react-router/issues{/number}","pulls_url":"https://api.github.com/repos/rackt/react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/rackt/react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/rackt/react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackt/react-router/labels{/name}","releases_url":"https://api.github.com/repos/rackt/react-router/releases{/id}","created_at":"2014-05-16T22:22:51Z","updated_at":"2015-04-28T11:20:36Z","pushed_at":"2015-04-26T00:16:26Z","git_url":"git://github.com/rackt/react-router.git","ssh_url":"git@github.com:rackt/react-router.git","clone_url":"https://github.com/rackt/react-router.git","svn_url":"https://github.com/rackt/react-router","homepage":"","size":9405,"stargazers_count":3994,"watchers_count":3994,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":542,"mirror_url":null,"open_issues_count":146,"forks":542,"open_issues":146,"watchers":3994,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackt/react-router/pulls/1137"},"html":{"href":"https://github.com/rackt/react-router/pull/1137"},"issue":{"href":"https://api.github.com/repos/rackt/react-router/issues/1137"},"comments":{"href":"https://api.github.com/repos/rackt/react-router/issues/1137/comments"},"review_comments":{"href":"https://api.github.com/repos/rackt/react-router/pulls/1137/comments"},"review_comment":{"href":"https://api.github.com/repos/rackt/react-router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackt/react-router/pulls/1137/commits"},"statuses":{"href":"https://api.github.com/repos/rackt/react-router/statuses/a45daa5a5a35e66df72dec784da0e6d7ff1d5e67"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":255,"deletions":0,"changed_files":5}}