{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/1425","labels_url":"https://api.github.com/repos/facebook/react-native/issues/1425/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1425/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/1425/events","html_url":"https://github.com/facebook/react-native/issues/1425","id":81535907,"number":1425,"title":"React Hot Loader and StaticContainer Usage in Navigator","user":{"login":"skevy","id":131916,"avatar_url":"https://avatars.githubusercontent.com/u/131916?v=3","gravatar_id":"","url":"https://api.github.com/users/skevy","html_url":"https://github.com/skevy","followers_url":"https://api.github.com/users/skevy/followers","following_url":"https://api.github.com/users/skevy/following{/other_user}","gists_url":"https://api.github.com/users/skevy/gists{/gist_id}","starred_url":"https://api.github.com/users/skevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skevy/subscriptions","organizations_url":"https://api.github.com/users/skevy/orgs","repos_url":"https://api.github.com/users/skevy/repos","events_url":"https://api.github.com/users/skevy/events{/privacy}","received_events_url":"https://api.github.com/users/skevy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-27T17:08:13Z","updated_at":"2015-05-27T19:14:34Z","closed_at":null,"body":"I'm opening this issue for discussion at the moment, because I'm not quite sure what the proper fix is yet.\r\n\r\nReact Native's Navigator uses a pattern that will return, if the component has already been rendered before, a `StaticContainer` element that has no children with the `shouldUpdate` prop set to false. This never breaks \"in real life\", because the whole point of not updating that component is to keep the previous reconciliation. The problem is, when using something like React Hot Loader, it force updates all components in the tree...so it will fail with an onlyChild invariant violation in StaticContainer when this pattern is used.\r\n\r\nCan we think of any elegant way to keep Navigator working with React Hot Loader? Theoretically, in the check in NavigatorNavigationBar and NavigatorBreadcrumbNavigationBar that is determining whether to recalculate the children or not, if we could know whether or not the component is being forceUpdated, we could allow for the recalculation of the children. I'm just honestly not sure how to check for that, or if that's some kind of anti-pattern.\r\n\r\n/cc @ericvicenti "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/106039366","html_url":"https://github.com/facebook/react-native/issues/1425#issuecomment-106039366","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1425","id":106039366,"user":{"login":"skevy","id":131916,"avatar_url":"https://avatars.githubusercontent.com/u/131916?v=3","gravatar_id":"","url":"https://api.github.com/users/skevy","html_url":"https://github.com/skevy","followers_url":"https://api.github.com/users/skevy/followers","following_url":"https://api.github.com/users/skevy/following{/other_user}","gists_url":"https://api.github.com/users/skevy/gists{/gist_id}","starred_url":"https://api.github.com/users/skevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skevy/subscriptions","organizations_url":"https://api.github.com/users/skevy/orgs","repos_url":"https://api.github.com/users/skevy/repos","events_url":"https://api.github.com/users/skevy/events{/privacy}","received_events_url":"https://api.github.com/users/skevy/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T19:14:34Z","updated_at":"2015-05-27T19:14:34Z","body":"@ide do you have a link to that discussion?"}}