{"action":"created","issue":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/680","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/680/labels{/name}","comments_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/680/comments","events_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/680/events","html_url":"https://github.com/aksonov/react-native-router-flux/issues/680","id":154936162,"number":680,"title":"Using redux fails","user":{"login":"itinance","id":1758597,"avatar_url":"https://avatars.githubusercontent.com/u/1758597?v=3","gravatar_id":"","url":"https://api.github.com/users/itinance","html_url":"https://github.com/itinance","followers_url":"https://api.github.com/users/itinance/followers","following_url":"https://api.github.com/users/itinance/following{/other_user}","gists_url":"https://api.github.com/users/itinance/gists{/gist_id}","starred_url":"https://api.github.com/users/itinance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itinance/subscriptions","organizations_url":"https://api.github.com/users/itinance/orgs","repos_url":"https://api.github.com/users/itinance/repos","events_url":"https://api.github.com/users/itinance/events{/privacy}","received_events_url":"https://api.github.com/users/itinance/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-15T23:01:07Z","updated_at":"2016-05-18T08:18:51Z","closed_at":null,"body":"I tried to use this router component with redux passing state and actions and ran into several issues.\r\nThus i tried to fill up an already existing redux example application with this routing-approach.\r\n\r\nHowever, it doesn't work and produce an error \"Action should be defined\".\r\n\r\nI published an example project \"Counter\" on github for reproducing: https://github.com/itinance/example-react-native-redux-with-router\r\nand extended with this router-stuff. It is the Counter-Directory.\r\n\r\nHow is it possible to combine this router-implementation with Redux?"},"comment":{"url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/comments/219957733","html_url":"https://github.com/aksonov/react-native-router-flux/issues/680#issuecomment-219957733","issue_url":"https://api.github.com/repos/aksonov/react-native-router-flux/issues/680","id":219957733,"user":{"login":"itinance","id":1758597,"avatar_url":"https://avatars.githubusercontent.com/u/1758597?v=3","gravatar_id":"","url":"https://api.github.com/users/itinance","html_url":"https://github.com/itinance","followers_url":"https://api.github.com/users/itinance/followers","following_url":"https://api.github.com/users/itinance/following{/other_user}","gists_url":"https://api.github.com/users/itinance/gists{/gist_id}","starred_url":"https://api.github.com/users/itinance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itinance/subscriptions","organizations_url":"https://api.github.com/users/itinance/orgs","repos_url":"https://api.github.com/users/itinance/repos","events_url":"https://api.github.com/users/itinance/events{/privacy}","received_events_url":"https://api.github.com/users/itinance/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T08:18:51Z","updated_at":"2016-05-18T08:18:51Z","body":"To make custom actions work, every component needs apparently to be connected with redux' \"connect\" method. This commit will solve my issue: https://github.com/itinance/react-native-router-flux/commit/65db001441406878a56b4ee8215825ae44ad4626\r\n\r\nBut i'm wondering about. In another project i switched to \"react-native-router-redux\", which works pretty well with connecting the actions only once in the root application component."}}