{"action":"created","issue":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/5908","repository_url":"https://api.github.com/repos/ReactTraining/react-router","labels_url":"https://api.github.com/repos/ReactTraining/react-router/issues/5908/labels{/name}","comments_url":"https://api.github.com/repos/ReactTraining/react-router/issues/5908/comments","events_url":"https://api.github.com/repos/ReactTraining/react-router/issues/5908/events","html_url":"https://github.com/ReactTraining/react-router/pull/5908","id":292280052,"node_id":"MDExOlB1bGxSZXF1ZXN0MTY1NjEzMjky","number":5908,"title":"Use new Context API in React 16.3","user":{"login":"timdorr","id":17882,"node_id":"MDQ6VXNlcjE3ODgy","avatar_url":"https://avatars2.githubusercontent.com/u/17882?v=4","gravatar_id":"","url":"https://api.github.com/users/timdorr","html_url":"https://github.com/timdorr","followers_url":"https://api.github.com/users/timdorr/followers","following_url":"https://api.github.com/users/timdorr/following{/other_user}","gists_url":"https://api.github.com/users/timdorr/gists{/gist_id}","starred_url":"https://api.github.com/users/timdorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdorr/subscriptions","organizations_url":"https://api.github.com/users/timdorr/orgs","repos_url":"https://api.github.com/users/timdorr/repos","events_url":"https://api.github.com/users/timdorr/events{/privacy}","received_events_url":"https://api.github.com/users/timdorr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-01-29T04:16:55Z","updated_at":"2018-06-27T14:08:25Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/ReactTraining/react-router/pulls/5908","html_url":"https://github.com/ReactTraining/react-router/pull/5908","diff_url":"https://github.com/ReactTraining/react-router/pull/5908.diff","patch_url":"https://github.com/ReactTraining/react-router/pull/5908.patch"},"body":"## Update!\r\n\r\nOK, a test release is on npm under the `next` tag.\r\n```\r\nnpm install react-router@next react-router-dom@next\r\n```\r\nIt's just those two packages for now, but please give them a try. Report any problems in this PR.\r\n\r\n## Continued...\r\n\r\nCloses #5901.\r\n\r\n~This will obviously not work on Travis until 16.3.0 is out.~ But I can confirm it works locally. \r\n\r\nTo play along at home, simply clone `react` in a parallel folder, `yarn && yarn run build`, and then copy over the files by hand back to this repo:\r\n```sh\r\ncp -a ../react/build/node_modules/react/* node_modules/react/\r\ncp -a ../react/build/node_modules/react-dom/* node_modules/react-dom/\r\n```\r\nThis is mostly a brute force approach. All the tests pass, but I'm doing whatever is necessary to get it to work. There may be some more radical refactors warranted with the new API. The new bitmask stuff is neato.\r\n\r\nWhile not BC yet, I'm least keeping available the old context API hooks. I need to feature sniff `unstable_createContext`. \r\n\r\nOutstanding stuff:\r\n- [x] ~Wait for a React release (duh)~\r\n- [x] ~`<Redirect>`, `<Prompt>`~\r\n- [x] ~`Router#getChildContext` references `this.context.router`~\r\n- [x] ~`<Link>`~\r\n- [x] ~React Router Native stuff~\r\n- [x] ~<= 16.2 compatibility~"},"comment":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/comments/400684743","html_url":"https://github.com/ReactTraining/react-router/pull/5908#issuecomment-400684743","issue_url":"https://api.github.com/repos/ReactTraining/react-router/issues/5908","id":400684743,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDY4NDc0Mw==","user":{"login":"timdorr","id":17882,"node_id":"MDQ6VXNlcjE3ODgy","avatar_url":"https://avatars2.githubusercontent.com/u/17882?v=4","gravatar_id":"","url":"https://api.github.com/users/timdorr","html_url":"https://github.com/timdorr","followers_url":"https://api.github.com/users/timdorr/followers","following_url":"https://api.github.com/users/timdorr/following{/other_user}","gists_url":"https://api.github.com/users/timdorr/gists{/gist_id}","starred_url":"https://api.github.com/users/timdorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdorr/subscriptions","organizations_url":"https://api.github.com/users/timdorr/orgs","repos_url":"https://api.github.com/users/timdorr/repos","events_url":"https://api.github.com/users/timdorr/events{/privacy}","received_events_url":"https://api.github.com/users/timdorr/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T14:08:25Z","updated_at":"2018-06-27T14:08:25Z","author_association":"COLLABORATOR","body":"This PR doesn't specifically fix that. Make sure you're using React 16.4 if you're using the new context API with the release version of this library."}}
{"actor":{"display_login":"timdorr"}}