{"action":"created","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/395","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/395/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/395/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/395/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/395","id":143505207,"number":395,"title":"Calling Same Route with different props mounts it idefinitely","user":{"login":"slamus","id":2813579,"avatar_url":"https://avatars.githubusercontent.com/u/2813579?v=3","gravatar_id":"","url":"https://api.github.com/users/slamus","html_url":"https://github.com/slamus","followers_url":"https://api.github.com/users/slamus/followers","following_url":"https://api.github.com/users/slamus/following{/other_user}","gists_url":"https://api.github.com/users/slamus/gists{/gist_id}","starred_url":"https://api.github.com/users/slamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamus/subscriptions","organizations_url":"https://api.github.com/users/slamus/orgs","repos_url":"https://api.github.com/users/slamus/repos","events_url":"https://api.github.com/users/slamus/events{/privacy}","received_events_url":"https://api.github.com/users/slamus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-25T14:01:07Z","updated_at":"2016-03-25T15:15:28Z","closed_at":null,"body":"Hi,\r\n\r\nJust upgraded to v3, and everything is working as expected even if the breaking changes were breaking a lot of things ;)\r\nHowever I have one remaining issue, and I cannot find a solution to it:\r\n\r\nI'm calling a single modal route from different places in my code, and with different props.\r\nI change the content of the modal according to the props sent.\r\n\r\n#### BEFORE \r\nThe modal was updating perfectly as you expect with a single view changing its state.\r\n#### AFTER\r\nThe modal is working good at first call.\r\nBut when I try to call the route a second time with different props, the component is mounted repeatedly like in a infinite loop...\r\n\r\n*Edit: the `componentWillReceiveProps()` method is called repeatedly and the `render()` method too.*\r\n\r\n#### CODE\r\n\r\nMain Router\r\n\r\n```jsx\r\n<Router createReducer={params => this.routerReducerCreate(params)}>\r\n  <Scene key=\"container\" component={Modal}>\r\n    <Scene key=\"root\" hideNavBar={true} component={MainContainer}>\r\n\r\n      <Scene\r\n        key=\"Login\"\r\n        type=\"replace\"\r\n        component={LoginPageContainer}\r\n        initial={true}\r\n      />\r\n\r\n      <Scene\r\n        key=\"Platform\"\r\n        type=\"replace\"\r\n        component={PlatformContainer}\r\n      >\r\n      // .....SOME ROUTES\r\n      </Scene>\r\n\r\n    </Scene>\r\n\r\n    <Scene\r\n      key=\"Modal\"\r\n      component={ModalContainer}\r\n    />\r\n\r\n  </Scene>\r\n</Router>\r\n```\r\n\r\nHow I call the route\r\n\r\n```js\r\n    Actions.Modal({\r\n      modal: \"countryCode\",\r\n      callback: (country) => {\r\n        if (country) {\r\n          this.props.onSubmit({\r\n            phone_number: country.dial_code,\r\n          });\r\n        }\r\n      }\r\n    })\r\n```\r\nOR\r\n\r\n```js\r\n     Actions.Modal({\r\n        modal: \"webView\",\r\n        callback: ()=>{\r\n          appActions.setWebViewURL(null);\r\n        },\r\n        data: {\r\n          webViewURL: this.props.app.get(\"webViewURL\"),\r\n        },\r\n      })\r\n```js"},"comment":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/comments/201328055","html_url":"https://github.com/aksonov/react-native-router-flux/issues/395#issuecomment-201328055","issue_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/395","id":201328055,"user":{"login":"slamus","id":2813579,"avatar_url":"https://avatars.githubusercontent.com/u/2813579?v=3","gravatar_id":"","url":"https://api.github.com/users/slamus","html_url":"https://github.com/slamus","followers_url":"https://api.github.com/users/slamus/followers","following_url":"https://api.github.com/users/slamus/following{/other_user}","gists_url":"https://api.github.com/users/slamus/gists{/gist_id}","starred_url":"https://api.github.com/users/slamus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slamus/subscriptions","organizations_url":"https://api.github.com/users/slamus/orgs","repos_url":"https://api.github.com/users/slamus/repos","events_url":"https://api.github.com/users/slamus/events{/privacy}","received_events_url":"https://api.github.com/users/slamus/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T15:15:28Z","updated_at":"2016-03-25T15:15:28Z","body":"Yes,\r\nI will try to change my logic to match the example one.\r\nKeep you updated"}}