{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react/issues/7187","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/7187/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/7187/comments","events_url":"https://api.github.com/repos/facebook/react/issues/7187/events","html_url":"https://github.com/facebook/react/issues/7187","id":163820893,"number":7187,"title":"\"Missing React element for debugID\" warning when triggering a render in componentWillMount","user":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-05T10:37:50Z","updated_at":"2016-07-05T10:37:50Z","closed_at":null,"body":"**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n\r\n**What is the current behavior?**\r\nAs reported by @adamryvola in https://github.com/facebook/react/pull/6869#issuecomment-230349514, React is displaying a warning `Warning: ReactComponentTreeDevtool: Missing React element for debugID 2 when building stack` when another component is rendered in `componentWillMount`\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).**\r\n\r\n```js\r\nimport React, {Component} from 'react';\r\nimport ReactDOM from 'react-dom';\r\n\r\nconst container = document.getElementById('container');\r\nconst menuContainer = document.getElementById('menu-container');\r\n\r\nexport default class App extends Component {\r\n\r\n  componentWillMount() {\r\n    ReactDOM.render(<div />, menuContainer);  // <= Trigger the warning\r\n  }\r\n\r\n  render() {\r\n    return (\r\n      <div>\r\n        <div>App</div>\r\n      </div>\r\n    );\r\n  }\r\n}\r\n\r\nReactDOM.render(<App />, container);\r\n\r\n```\r\nJSFiddle: https://jsfiddle.net/0n3a6vp9/\r\n\r\n**What is the expected behavior?**\r\nAccording to @gaearon this warning is \"against internal bugs in React, it's not meant for users\" (source: https://github.com/facebook/react/pull/6869#issuecomment-230272365) so this warning should not be triggered.\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?**\r\nReact `15.2.0`, no issue with `React 0.14.7`\r\n"}}
{"actor":{"display_login":"yannickcr"}}