{"action":"created","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/376","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/376/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/376/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/376/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/376","id":142919728,"number":376,"title":"Key login is already defined - HMR 0.22","user":{"login":"PeterKow","id":10186048,"avatar_url":"https://avatars.githubusercontent.com/u/10186048?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterKow","html_url":"https://github.com/PeterKow","followers_url":"https://api.github.com/users/PeterKow/followers","following_url":"https://api.github.com/users/PeterKow/following{/other_user}","gists_url":"https://api.github.com/users/PeterKow/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterKow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterKow/subscriptions","organizations_url":"https://api.github.com/users/PeterKow/orgs","repos_url":"https://api.github.com/users/PeterKow/repos","events_url":"https://api.github.com/users/PeterKow/events{/privacy}","received_events_url":"https://api.github.com/users/PeterKow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-23T10:19:44Z","updated_at":"2016-03-23T11:04:23Z","closed_at":null,"body":"I am on `react-native 0.22` and `react-native-router-flux 3.1.3` with hot reloding [HMR], after first HMR reload I got following error \r\n\r\n![image](https://cloud.githubusercontent.com/assets/10186048/13956908/730928a0-f042-11e5-8c2a-988066f2b0f9.png)\r\n\r\nProblem is caused by `Actions.create`\r\n\r\nThis is my current setup:\r\n```javascript\r\nlet scenes = Actions.create(\r\n     <Scene key=\"root\">\r\n            <Scene key=\"login\" component={Login} title=\"Login\"/>\r\n          </Scene>\r\n);\r\n\r\n <Provider store={store}>\r\n      {() =>\r\n        <Router scenes={scenes} />\r\n      }\r\n    </Provider>\r\n```\r\n\r\nI tired this also, but doesn't work at all - nothing renders\r\n```javascript\r\n <Provider store={store}>\r\n      {() =>\r\n        <Router>\r\n          <Scene key=\"root\">\r\n            <Scene key=\"login\" component={Login} title=\"Login\"/>\r\n          </Scene>\r\n        </Router>\r\n      }\r\n    </Provider>\r\n```\r\n\r\nTemporary solution is to call when working with HMR is to call components directly without Router\r\n\r\n```javascript\r\n{() =>\r\n        <Login/>\r\n      }\r\n..\r\n\r\nLet me know if you have any ideas, so I can test them :)"},"comment":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/comments/200297711","html_url":"https://github.com/aksonov/react-native-router-flux/issues/376#issuecomment-200297711","issue_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/376","id":200297711,"user":{"login":"aksonov","id":1321329,"avatar_url":"https://avatars.githubusercontent.com/u/1321329?v=3","gravatar_id":"","url":"https://api.github.com/users/aksonov","html_url":"https://github.com/aksonov","followers_url":"https://api.github.com/users/aksonov/followers","following_url":"https://api.github.com/users/aksonov/following{/other_user}","gists_url":"https://api.github.com/users/aksonov/gists{/gist_id}","starred_url":"https://api.github.com/users/aksonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aksonov/subscriptions","organizations_url":"https://api.github.com/users/aksonov/orgs","repos_url":"https://api.github.com/users/aksonov/repos","events_url":"https://api.github.com/users/aksonov/events{/privacy}","received_events_url":"https://api.github.com/users/aksonov/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T11:04:23Z","updated_at":"2016-03-23T11:04:23Z","body":"Check latest version\n\n> On 23 Mar 2016, at 11:19, Peter Kowalczyk <notifications@github.com> wrote:\n> \n> I am on react-native 0.22 and react-native-router-flux 3.1.3 with hot reloding [HMR], after first HMR reload I got following error\n> \n>  <https://cloud.githubusercontent.com/assets/10186048/13956908/730928a0-f042-11e5-8c2a-988066f2b0f9.png>\n> Problem is caused by Actions.create\n> \n> This is my current setup:\n> \n> let scenes = Actions.create(\n>      <Scene key=\"root\">\n>             <Scene key=\"login\" component={Login} title=\"Login\"/>\n>           </Scene>\n> );\n> \n>  <Provider store={store}>\n>       {() =>\n>         <Router scenes={scenes} />\n>       }\n>     </Provider>\n> I tired this also, but doesn't work at all - nothing renders\n> \n>  <Provider store={store}>\n>       {() =>\n>         <Router>\n>           <Scene key=\"root\">\n>             <Scene key=\"login\" component={Login} title=\"Login\"/>\n>           </Scene>\n>         </Router>\n>       }\n>     </Provider>\n> Temporary solution is to call when working with HMR is to call components directly without Router\n> \n> {() =>\n>         <Login/>\n>       }\n> ..\n> \n> Let me know if you have any ideas, so I can test them :)\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub <https://github.com/aksonov/react-native-router-flux/issues/376>\n\n"}}