{"action":"created","issue":{"url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/5","labels_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/5/comments","events_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/5/events","html_url":"https://github.com/Yomguithereal/react-blessed/issues/5","id":103114726,"number":5,"title":"Implementation of ReactComponentEnvironment.replaceNodeWithMarkupByID","user":{"login":"yuchi","id":646609,"avatar_url":"https://avatars.githubusercontent.com/u/646609?v=3","gravatar_id":"","url":"https://api.github.com/users/yuchi","html_url":"https://github.com/yuchi","followers_url":"https://api.github.com/users/yuchi/followers","following_url":"https://api.github.com/users/yuchi/following{/other_user}","gists_url":"https://api.github.com/users/yuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchi/subscriptions","organizations_url":"https://api.github.com/users/yuchi/orgs","repos_url":"https://api.github.com/users/yuchi/repos","events_url":"https://api.github.com/users/yuchi/events{/privacy}","received_events_url":"https://api.github.com/users/yuchi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yomguithereal/react-blessed/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Yomguithereal/react-blessed/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-25T20:53:19Z","updated_at":"2015-09-03T15:53:42Z","closed_at":null,"body":"You know that because of `react-titanium` we share a lot of common pains :)\r\n\r\nWell, looks like that:\r\n\r\n1. In `react@0.14.0-beta3` we still cannot re-inject *ReactComponentEnvironment*.\r\n2. In some specific cases we need to implement `replaceNodeWithMarkupByID` otherwise it will throw errors at us.\r\n\r\nA simple test case that worked (which means failed!) for me is:\r\n\r\n```js\r\nclass Simple extends Component { /* ... */ }\r\nclass Advanced extends Component { /* ... */ }\r\n\r\nclass Root extends Component {\r\n  render() {\r\n    return this.state.something ? <Simple /> : <Advanced />;\r\n  }\r\n}\r\n```\r\n\r\nand then change the value of `state.something` to a truthy and React will understand that it must completely replace the nodes rendered by `Advanced` and calls `replaceNodeWithMarkupByID` which of course doesn’t work in our scenarios.\r\n\r\nMay I suggest you to check if you need to implement it too?"},"comment":{"url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/comments/137492239","html_url":"https://github.com/Yomguithereal/react-blessed/issues/5#issuecomment-137492239","issue_url":"https://api.github.com/repos/Yomguithereal/react-blessed/issues/5","id":137492239,"user":{"login":"yuchi","id":646609,"avatar_url":"https://avatars.githubusercontent.com/u/646609?v=3","gravatar_id":"","url":"https://api.github.com/users/yuchi","html_url":"https://github.com/yuchi","followers_url":"https://api.github.com/users/yuchi/followers","following_url":"https://api.github.com/users/yuchi/following{/other_user}","gists_url":"https://api.github.com/users/yuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchi/subscriptions","organizations_url":"https://api.github.com/users/yuchi/orgs","repos_url":"https://api.github.com/users/yuchi/repos","events_url":"https://api.github.com/users/yuchi/events{/privacy}","received_events_url":"https://api.github.com/users/yuchi/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T15:53:42Z","updated_at":"2015-09-03T15:53:42Z","body":"That's exactly the kind of errors that pushed me into implementing it as a noop."}}