{"action":"created","issue":{"url":"https://api.github.com/repos/yahoo/react-intl/issues/1106","repository_url":"https://api.github.com/repos/yahoo/react-intl","labels_url":"https://api.github.com/repos/yahoo/react-intl/issues/1106/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/react-intl/issues/1106/comments","events_url":"https://api.github.com/repos/yahoo/react-intl/issues/1106/events","html_url":"https://github.com/yahoo/react-intl/issues/1106","id":301959180,"number":1106,"title":"RFC: New React Context API","user":{"login":"langpavel","id":142462,"avatar_url":"https://avatars2.githubusercontent.com/u/142462?v=4","gravatar_id":"","url":"https://api.github.com/users/langpavel","html_url":"https://github.com/langpavel","followers_url":"https://api.github.com/users/langpavel/followers","following_url":"https://api.github.com/users/langpavel/following{/other_user}","gists_url":"https://api.github.com/users/langpavel/gists{/gist_id}","starred_url":"https://api.github.com/users/langpavel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/langpavel/subscriptions","organizations_url":"https://api.github.com/users/langpavel/orgs","repos_url":"https://api.github.com/users/langpavel/repos","events_url":"https://api.github.com/users/langpavel/events{/privacy}","received_events_url":"https://api.github.com/users/langpavel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-03T02:20:12Z","updated_at":"2018-04-27T23:09:43Z","closed_at":null,"author_association":"NONE","body":"### This is RFC\r\n\r\nThere is upcoming change in React 16.3: [New Version of Context](https://github.com/reactjs/rfcs/blob/master/text/0002-new-version-of-context.md#summary)\r\n\r\nIs there any plan for new (*probably major / may be minor*) release of `react-intl` supporting this new API?\r\n - I believe that some issues can disappear with new API\r\n - old APIs will probably start throwing deprecation warnings with React 16.4\r\n - old APIs will probably be removed in React 17"},"comment":{"url":"https://api.github.com/repos/yahoo/react-intl/issues/comments/385115953","html_url":"https://github.com/yahoo/react-intl/issues/1106#issuecomment-385115953","issue_url":"https://api.github.com/repos/yahoo/react-intl/issues/1106","id":385115953,"user":{"login":"heathzipongo","id":36862526,"avatar_url":"https://avatars0.githubusercontent.com/u/36862526?v=4","gravatar_id":"","url":"https://api.github.com/users/heathzipongo","html_url":"https://github.com/heathzipongo","followers_url":"https://api.github.com/users/heathzipongo/followers","following_url":"https://api.github.com/users/heathzipongo/following{/other_user}","gists_url":"https://api.github.com/users/heathzipongo/gists{/gist_id}","starred_url":"https://api.github.com/users/heathzipongo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heathzipongo/subscriptions","organizations_url":"https://api.github.com/users/heathzipongo/orgs","repos_url":"https://api.github.com/users/heathzipongo/repos","events_url":"https://api.github.com/users/heathzipongo/events{/privacy}","received_events_url":"https://api.github.com/users/heathzipongo/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T23:09:43Z","updated_at":"2018-04-27T23:09:43Z","author_association":"NONE","body":"It would be very helpful if `react-intl` would export it's own React Context.Consumer component implementation so that I can access the `intl` object from inside my component without the need for the `injectIntl` HOC.  Please tell me that is also part of the work being done?!\r\n\r\ni.e. in my component I can do something like:\r\n```\r\nimport {IntlContextConsumer} from 'react-intl'; // Proposed name for the consumer\r\nclass MyComponent extends Component {\r\n  render() {\r\n    return (\r\n      <IntlContextConsumer>\r\n        {{intl} => {(\r\n           <input \r\n             placeholder={intl.formatMessage({id: 'messageId', defaultMessage: 'Enter something'})\r\n             ... // other props\r\n          />\r\n        }}\r\n      </IntlContextConsumer>\r\n    );\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"heathzipongo"}}