{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/9502","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/9502/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/9502/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/9502/events","html_url":"https://github.com/facebook/react-native/issues/9502","id":172315744,"number":9502,"title":"NavigationTransitioner: refactoring between 0.28 and 0.29 makes it re-render a scene when navigating back","user":{"login":"p16","id":272483,"avatar_url":"https://avatars.githubusercontent.com/u/272483?v=3","gravatar_id":"","url":"https://api.github.com/users/p16","html_url":"https://github.com/p16","followers_url":"https://api.github.com/users/p16/followers","following_url":"https://api.github.com/users/p16/following{/other_user}","gists_url":"https://api.github.com/users/p16/gists{/gist_id}","starred_url":"https://api.github.com/users/p16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p16/subscriptions","organizations_url":"https://api.github.com/users/p16/orgs","repos_url":"https://api.github.com/users/p16/repos","events_url":"https://api.github.com/users/p16/events{/privacy}","received_events_url":"https://api.github.com/users/p16/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-21T10:59:24Z","updated_at":"2016-08-26T15:30:26Z","closed_at":null,"body":"Hi there,\r\nupgrading from 0.28 to 0.29 (this happens also up to 0.31) I got a problem when navigating back to a previous scene.\r\n\r\nIn 0.28 the scene would not re-render. In 0.29 the previous scene will re-render.\r\n\r\nThis behaviour seems to be related to the fact that a scene is \"unmounted\" as soon as the next scene is rendered. Going back will basically recreate the scene from scratch. I'm not sure this was intended and in my opinion this change defeats the purpose of having a navigator that should show you the previous scene without re-rendering, as a native navigator usually do.\r\n\r\nI think the change happened in this commit https://github.com/facebook/react-native/commit/3a6231432a48f49d67d24fa87dac75e8fb7ac345#diff-2829ac115b33c48fbd4110134089d971L170 . It seems that a reference to the already rendered scenes is no longer kept and the scenes are considered \"unmountable\" by react.\r\n\r\nGiven that my assumption may be incorrect, this is the code I'm using to implement the navigation https://gist.github.com/p16/30e72f2b6e74d1bf9b35ebca78128ba7 . Maybe I'm just using a component the wrong way for 0.29 changes :) \r\n\r\nP.S.: I think that also https://github.com/facebook/react-native/issues/9479 may be related to this.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/242768156","html_url":"https://github.com/facebook/react-native/issues/9502#issuecomment-242768156","issue_url":"https://api.github.com/repos/facebook/react-native/issues/9502","id":242768156,"user":{"login":"facebook-github-bot-5","id":8398657,"avatar_url":"https://avatars.githubusercontent.com/u/8398657?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot-5","html_url":"https://github.com/facebook-github-bot-5","followers_url":"https://api.github.com/users/facebook-github-bot-5/followers","following_url":"https://api.github.com/users/facebook-github-bot-5/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot-5/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot-5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot-5/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot-5/orgs","repos_url":"https://api.github.com/users/facebook-github-bot-5/repos","events_url":"https://api.github.com/users/facebook-github-bot-5/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot-5/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T15:30:26Z","updated_at":"2016-08-26T15:30:26Z","body":"Closing this issue as @ryankask says the question asked has been answered. Please help us by asking questions on [StackOverflow](http://stackoverflow.com/questions/tagged/react-native). StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only."}}
{"actor":{"display_login":"facebook-github-bot-5"}}