{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react-devtools/issues/1257","repository_url":"https://api.github.com/repos/facebook/react-devtools","labels_url":"https://api.github.com/repos/facebook/react-devtools/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-devtools/issues/1257/comments","events_url":"https://api.github.com/repos/facebook/react-devtools/issues/1257/events","html_url":"https://github.com/facebook/react-devtools/issues/1257","id":394923900,"node_id":"MDU6SXNzdWUzOTQ5MjM5MDA=","number":1257,"title":"Context is not displayed when its type is number","user":{"login":"yifei-fu","id":13537021,"node_id":"MDQ6VXNlcjEzNTM3MDIx","avatar_url":"https://avatars1.githubusercontent.com/u/13537021?v=4","gravatar_id":"","url":"https://api.github.com/users/yifei-fu","html_url":"https://github.com/yifei-fu","followers_url":"https://api.github.com/users/yifei-fu/followers","following_url":"https://api.github.com/users/yifei-fu/following{/other_user}","gists_url":"https://api.github.com/users/yifei-fu/gists{/gist_id}","starred_url":"https://api.github.com/users/yifei-fu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yifei-fu/subscriptions","organizations_url":"https://api.github.com/users/yifei-fu/orgs","repos_url":"https://api.github.com/users/yifei-fu/repos","events_url":"https://api.github.com/users/yifei-fu/events{/privacy}","received_events_url":"https://api.github.com/users/yifei-fu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-31T03:30:29Z","updated_at":"2018-12-31T03:30:29Z","closed_at":null,"author_association":"NONE","body":"When testing issue #1212 I found that context panel is missing when the context is a number.\r\n\r\nCode: \r\n```\r\n<!doctype html>\r\n<meta charset=\"utf-8\">\r\n<title>React Context test</title>\r\n<div id=\"container\"></div>\r\n<script src=\"https://unpkg.com/react@16.6.0/umd/react.development.js\"></script>\r\n<script src=\"https://unpkg.com/react-dom@16.6.0/umd/react-dom.development.js\"></script>\r\n\r\n<script>\r\n    const TestContext = React.createContext();\r\n\r\n    class Test extends React.Component {\r\n        render() {\r\n            return React.createElement(\"p\", {}, `typeof context: ${typeof this.context}`);\r\n        }\r\n    }\r\n    Test.contextType = TestContext;\r\n\r\n    ReactDOM.render(\r\n        React.createElement(\r\n            React.Fragment,\r\n            {},\r\n            [\r\n                React.createElement(\r\n                    TestContext.Provider,\r\n                    { value: 5, key: 0 },\r\n                    React.createElement(Test),\r\n                ),\r\n                React.createElement(\r\n                    TestContext.Provider,\r\n                    { value: 'string', key: 1 },\r\n                    React.createElement(Test),\r\n                ),\r\n            ]\r\n        ),\r\n        container\r\n    );\r\n</script>\r\n```\r\n![context](https://user-images.githubusercontent.com/13537021/50554063-df0fd680-0c68-11e9-8a66-a94fe752fb15.gif)\r\n"}}
{"actor":{"display_login":"yifei-fu"}}