{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/13944","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/13944/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/13944/comments","events_url":"https://api.github.com/repos/facebook/react/issues/13944/events","html_url":"https://github.com/facebook/react/issues/13944","id":373351962,"node_id":"MDU6SXNzdWUzNzMzNTE5NjI=","number":13944,"title":"Cannot be used new contextType API in constructor?","user":{"login":"maisumakun","id":7711783,"node_id":"MDQ6VXNlcjc3MTE3ODM=","avatar_url":"https://avatars3.githubusercontent.com/u/7711783?v=4","gravatar_id":"","url":"https://api.github.com/users/maisumakun","html_url":"https://github.com/maisumakun","followers_url":"https://api.github.com/users/maisumakun/followers","following_url":"https://api.github.com/users/maisumakun/following{/other_user}","gists_url":"https://api.github.com/users/maisumakun/gists{/gist_id}","starred_url":"https://api.github.com/users/maisumakun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maisumakun/subscriptions","organizations_url":"https://api.github.com/users/maisumakun/orgs","repos_url":"https://api.github.com/users/maisumakun/repos","events_url":"https://api.github.com/users/maisumakun/events{/privacy}","received_events_url":"https://api.github.com/users/maisumakun/received_events","type":"User","site_admin":false},"labels":[{"id":40929151,"node_id":"MDU6TGFiZWw0MDkyOTE1MQ==","url":"https://api.github.com/repos/facebook/react/labels/Type:%20Bug","name":"Type: Bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-24T07:58:17Z","updated_at":"2018-10-24T21:42:42Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  Note: if the issue is about documentation or the website, please file it at:\r\n  https://github.com/reactjs/reactjs.org/issues/new\r\n-->\r\n\r\n**Do you want to request a *feature* or report a *bug*?** *feature* \r\n\r\n**What is the current behavior?** Using `Component.contextType`, `this.context` keeps `null` in class component's constructor.\r\n\r\n**What is the expected behavior?** \r\n\r\n-  `this.context` can be obtained in constructor\r\n- if implementing of the feature is inappropriate, write in documentations that `this.context` cannot be used in constructor.\r\n\r\n**Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?** React 16.6 (older React doesn't have `Component.contextType`) in Chrome 70 (Windows 7)\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/432838646","html_url":"https://github.com/facebook/react/issues/13944#issuecomment-432838646","issue_url":"https://api.github.com/repos/facebook/react/issues/13944","id":432838646,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjgzODY0Ng==","user":{"login":"gaearon","id":810438,"node_id":"MDQ6VXNlcjgxMDQzOA==","avatar_url":"https://avatars0.githubusercontent.com/u/810438?v=4","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T21:42:42Z","updated_at":"2018-10-24T21:42:42Z","author_association":"MEMBER","body":"Want to send a failing unit test and/or fix?"}}
{"actor":{"display_login":"gaearon"}}