{"action":"opened","issue":{"url":"https://api.github.com/repos/Izzimach/react-three/issues/37","labels_url":"https://api.github.com/repos/Izzimach/react-three/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/Izzimach/react-three/issues/37/comments","events_url":"https://api.github.com/repos/Izzimach/react-three/issues/37/events","html_url":"https://github.com/Izzimach/react-three/issues/37","id":107197103,"number":37,"title":"THREE error when returning null in a render method","user":{"login":"fredericlb","id":326828,"avatar_url":"https://avatars.githubusercontent.com/u/326828?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericlb","html_url":"https://github.com/fredericlb","followers_url":"https://api.github.com/users/fredericlb/followers","following_url":"https://api.github.com/users/fredericlb/following{/other_user}","gists_url":"https://api.github.com/users/fredericlb/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericlb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericlb/subscriptions","organizations_url":"https://api.github.com/users/fredericlb/orgs","repos_url":"https://api.github.com/users/fredericlb/repos","events_url":"https://api.github.com/users/fredericlb/events{/privacy}","received_events_url":"https://api.github.com/users/fredericlb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-18T12:53:23Z","updated_at":"2015-09-18T12:53:23Z","closed_at":null,"body":"When a custom component in a scene returns null on render (i'm currently writing a Mesh component that waits for its content to be loaded before display), THREE.js fails with : \r\n\r\n```THREE.Object3D.add: <noscript data-reactid=\"undefined.1\"></noscript> is not an instance of THREE.Object3D.``` \r\n\r\nWhich is right since React replaces the value with a noscript tag when null is returned by a component. react-three should check for this behaviour but I haven't found a clean way to do this.\r\nFor now I just check if the string is a noscript tag but it is not reliable (and really dirty).\r\n\r\nCould someone who knows React internals provide some hints on this subject ? \r\n\r\n"}}