{"action":"created","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/220","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/220/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/220/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/220/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/220","id":134448254,"number":220,"title":"Redux Integration","user":{"login":"sbycrosz","id":4867178,"avatar_url":"https://avatars.githubusercontent.com/u/4867178?v=3","gravatar_id":"","url":"https://api.github.com/users/sbycrosz","html_url":"https://github.com/sbycrosz","followers_url":"https://api.github.com/users/sbycrosz/followers","following_url":"https://api.github.com/users/sbycrosz/following{/other_user}","gists_url":"https://api.github.com/users/sbycrosz/gists{/gist_id}","starred_url":"https://api.github.com/users/sbycrosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbycrosz/subscriptions","organizations_url":"https://api.github.com/users/sbycrosz/orgs","repos_url":"https://api.github.com/users/sbycrosz/repos","events_url":"https://api.github.com/users/sbycrosz/events{/privacy}","received_events_url":"https://api.github.com/users/sbycrosz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-18T00:59:53Z","updated_at":"2016-04-04T12:11:52Z","closed_at":"2016-02-18T17:11:51Z","body":"TLDR; `Redux` state should reflects on the current state of the UI\r\n\r\nThe `Redux Integration` in the Readme only mentions about **adding router callback** into the `Redux Reducer`, adding a copy of current route (which won't get used for deciding which 'Route' to render), And **Router has it's own `Store`** (which'll get used for deciding which 'Route' to render) separate from the `Redux Store`. This **breaks Redux's single data tree / source of truth** since there are 2 separate store.\r\n\r\nUse case for this is when I'm recording my `Redux Actions`, sending them as Error Logs, and replaying the `Actions`. (Note that when I'm replaying the `Router AFTER_ROUTE etc.` as `Redux Action`s, the UI will not change since the **Router depends on its internal store** instead of Redux's store)\r\n\r\nOne possible solution is create a `RouterReducer`, let the user add it to their root reducer, and use the data from `Redux Store` to render the UI (As they did for React Router https://github.com/reactjs/react-router-redux)\r\n\r\nAnyway this's just a conversation placeholder, I will try to conjure some examples over the weekend.\r\nCheers, \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/comments/205270465","html_url":"https://github.com/aksonov/react-native-router-flux/issues/220#issuecomment-205270465","issue_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/220","id":205270465,"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-04-04T12:11:52Z","updated_at":"2016-04-04T12:11:52Z","body":"It uses React Native ExperimentalNavigation built-in store. According to https://github.com/ericvicenti/navigation-rfc/issues/52 author doesn't want to mix redux with this store..."}}