{"action":"created","issue":{"url":"https://api.github.com/repos/angular-redux/ng2-redux/issues/109","repository_url":"https://api.github.com/repos/angular-redux/ng2-redux","labels_url":"https://api.github.com/repos/angular-redux/ng2-redux/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/angular-redux/ng2-redux/issues/109/comments","events_url":"https://api.github.com/repos/angular-redux/ng2-redux/issues/109/events","html_url":"https://github.com/angular-redux/ng2-redux/issues/109","id":154359560,"number":109,"title":"Subscriptions not firing","user":{"login":"nareshbhatia","id":1220198,"avatar_url":"https://avatars.githubusercontent.com/u/1220198?v=3","gravatar_id":"","url":"https://api.github.com/users/nareshbhatia","html_url":"https://github.com/nareshbhatia","followers_url":"https://api.github.com/users/nareshbhatia/followers","following_url":"https://api.github.com/users/nareshbhatia/following{/other_user}","gists_url":"https://api.github.com/users/nareshbhatia/gists{/gist_id}","starred_url":"https://api.github.com/users/nareshbhatia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nareshbhatia/subscriptions","organizations_url":"https://api.github.com/users/nareshbhatia/orgs","repos_url":"https://api.github.com/users/nareshbhatia/repos","events_url":"https://api.github.com/users/nareshbhatia/events{/privacy}","received_events_url":"https://api.github.com/users/nareshbhatia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-11T22:42:46Z","updated_at":"2016-05-12T15:00:40Z","closed_at":null,"body":"@SethDavenport, @bennett000 - as discussed at ng-Conf, I have created a slightly more complex example than the counter example supplied with ng2-redux. This one lets you enter a Github organization and displays the repositories associated with that organization. The Github project is located [here](https://github.com/archfirst/github-viewer). I have two implementations:\r\n\r\n1. Angular2 only\r\n2. Angular2 + ng2-redux\r\n\r\nUnfortunately I am not able to get the ng2-redux implementation working. The actions are being dispatched correctly and the reducer is changing the state successfully. However the subscriptions are not being fired. Here's a console log of what I am seeing:\r\n\r\n```\r\n// This stuff is happening on app initialization\r\nreducer - action: Object {type: \"@@redux/INIT\"}\r\nreducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}\r\nreducer - nxtState: Object {orgName: null, errorMessage: null, repos: Array[0]}\r\nreducer - action: Object {type: \"@@redux/PROBE_UNKNOWN_ACTION_w.m.l.x.n.o.j.q.1.7.m.b.n.s.c.0.i.z.f.r\"}\r\nreducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}\r\nreducer - nxtState: Object {orgName: null, errorMessage: null, repos: Array[0]}\r\nreducer - action: Object {type: \"@@redux/INIT\"}\r\nreducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}\r\nreducer - nxtState: Object {orgName: null, errorMessage: null, repos: Array[0]}\r\n----- orgNameSubscription -----\r\norgname: undefined\r\nstate.orgName: undefined\r\n----- errorMessageSubscription -----\r\nerrorMessage: undefined\r\nstate.errorMessage: undefined\r\n----- reposSubscription -----\r\nrepos: undefined\r\nstate.repos: undefined\r\n\r\n// When I submit the form with orgName = \"archfirst\" the reducer is being called correctly\r\nreducer - action: Object {type: \"CHANGE_ORG_NAME\", orgName: \"archfirst\"}\r\nreducer - curState: Object {orgName: null, errorMessage: null, repos: Array[0]}\r\nreducer - nxtState: Object {orgName: \"archfirst\", errorMessage: null, repos: Array[0]}\r\n\r\n// However after this I see no call to orgNameSubscription\r\n```\r\n\r\nWould you be able to look at the implementation and tell me where I am going wrong? If we can get this working it would be a good second example for ng2-redux users. Thanks in advance for your time."},"comment":{"url":"https://api.github.com/repos/angular-redux/ng2-redux/issues/comments/218784733","html_url":"https://github.com/angular-redux/ng2-redux/issues/109#issuecomment-218784733","issue_url":"https://api.github.com/repos/angular-redux/ng2-redux/issues/109","id":218784733,"user":{"login":"e-schultz","id":3045906,"avatar_url":"https://avatars.githubusercontent.com/u/3045906?v=3","gravatar_id":"","url":"https://api.github.com/users/e-schultz","html_url":"https://github.com/e-schultz","followers_url":"https://api.github.com/users/e-schultz/followers","following_url":"https://api.github.com/users/e-schultz/following{/other_user}","gists_url":"https://api.github.com/users/e-schultz/gists{/gist_id}","starred_url":"https://api.github.com/users/e-schultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-schultz/subscriptions","organizations_url":"https://api.github.com/users/e-schultz/orgs","repos_url":"https://api.github.com/users/e-schultz/repos","events_url":"https://api.github.com/users/e-schultz/events{/privacy}","received_events_url":"https://api.github.com/users/e-schultz/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T15:00:40Z","updated_at":"2016-05-12T15:00:40Z","body":"@nareshbhatia I'll take a look into this when I get the chance, thanks for providing the repo/implementation - it will help debug the issue."}}