{"action":"created","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/172","repository_url":"https://api.github.com/repos/aksonov/react-native-router-flux","labels_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/172/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/172/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/172","id":131252970,"number":172,"title":"\"Cannot read property 'push' of undefined\" when mounting router for the second time","user":{"login":"danielweinmann","id":204765,"avatar_url":"https://avatars.githubusercontent.com/u/204765?v=3","gravatar_id":"","url":"https://api.github.com/users/danielweinmann","html_url":"https://github.com/danielweinmann","followers_url":"https://api.github.com/users/danielweinmann/followers","following_url":"https://api.github.com/users/danielweinmann/following{/other_user}","gists_url":"https://api.github.com/users/danielweinmann/gists{/gist_id}","starred_url":"https://api.github.com/users/danielweinmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielweinmann/subscriptions","organizations_url":"https://api.github.com/users/danielweinmann/orgs","repos_url":"https://api.github.com/users/danielweinmann/repos","events_url":"https://api.github.com/users/danielweinmann/events{/privacy}","received_events_url":"https://api.github.com/users/danielweinmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-04T05:56:02Z","updated_at":"2016-02-04T20:53:41Z","closed_at":"2016-02-04T14:55:48Z","body":"I have an app that uses navigation only in a small part of it and for the rest it relies on figuring what components to render by state, using redux.\r\n\r\nToday I replaced NavigatorIOS for routers in the main place where I used navigation, and at first it seemed to work perfectly. But when I mounted for the second time the navigation flow, after coming from other part of the app that does not use routers, I got the following error:\r\n\r\n![simulator screen shot feb 4 2016 3 51 20 am](https://cloud.githubusercontent.com/assets/204765/12807016/965dc1fa-caf2-11e5-9421-279429b1bc3c.png)\r\n\r\nI created a simplified scenario where I can simulate the problem here: https://gist.github.com/danielweinmann/8ab67efdf51e773f4a59\r\n\r\nTo simulate the problem, just run the example and do the following:\r\n\r\n- Click on \"Next\"\r\n- Click on \"Sign in\"\r\n- Click on \"Sing out\"\r\n- Click on \"Next\" again.\r\n\r\nI would gladly contribute with a fix for this problem, but I couldn't figure it out so far.\r\n\r\nAnyone has any thought on it? @aksonov, can you enlighten me?"},"comment":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/comments/180045963","html_url":"https://github.com/aksonov/react-native-router-flux/issues/172#issuecomment-180045963","issue_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/172","id":180045963,"user":{"login":"MITDelian","id":1158032,"avatar_url":"https://avatars.githubusercontent.com/u/1158032?v=3","gravatar_id":"","url":"https://api.github.com/users/MITDelian","html_url":"https://github.com/MITDelian","followers_url":"https://api.github.com/users/MITDelian/followers","following_url":"https://api.github.com/users/MITDelian/following{/other_user}","gists_url":"https://api.github.com/users/MITDelian/gists{/gist_id}","starred_url":"https://api.github.com/users/MITDelian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MITDelian/subscriptions","organizations_url":"https://api.github.com/users/MITDelian/orgs","repos_url":"https://api.github.com/users/MITDelian/repos","events_url":"https://api.github.com/users/MITDelian/events{/privacy}","received_events_url":"https://api.github.com/users/MITDelian/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T20:53:41Z","updated_at":"2016-02-04T20:53:41Z","body":"Ha thanks for solving this, I was just experiencing this myself as well. Thanks @danielweinmann !!"}}