{"action":"created","issue":{"url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/19","repository_url":"https://api.github.com/repos/wbuchwalter/ng-redux","labels_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/19/comments","events_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/19/events","html_url":"https://github.com/wbuchwalter/ng-redux/issues/19","id":104988277,"number":19,"title":"Feature Request: use an already created store.","user":{"login":"dlmanning","id":2949092,"avatar_url":"https://avatars.githubusercontent.com/u/2949092?v=3","gravatar_id":"","url":"https://api.github.com/users/dlmanning","html_url":"https://github.com/dlmanning","followers_url":"https://api.github.com/users/dlmanning/followers","following_url":"https://api.github.com/users/dlmanning/following{/other_user}","gists_url":"https://api.github.com/users/dlmanning/gists{/gist_id}","starred_url":"https://api.github.com/users/dlmanning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlmanning/subscriptions","organizations_url":"https://api.github.com/users/dlmanning/orgs","repos_url":"https://api.github.com/users/dlmanning/repos","events_url":"https://api.github.com/users/dlmanning/events{/privacy}","received_events_url":"https://api.github.com/users/dlmanning/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wbuchwalter/ng-redux/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-04T23:52:16Z","updated_at":"2016-04-22T05:57:03Z","closed_at":null,"body":"I'm aware I'm already pretty far out on a limb here, but my project uses both react (via ngreact) and angular. We've been using redux for the react part of the application, and I'm not working to bring it to the angular portion using your module. (Great work, btw!)\r\n\r\nWe already have a redux store, and would like to just share it between the react and angular portions instead of keeping two stores in parallel by sharing the reducers. Would that be as simple as adding a .useStore() method to ngReduxProvider? "},"comment":{"url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/comments/213273750","html_url":"https://github.com/wbuchwalter/ng-redux/issues/19#issuecomment-213273750","issue_url":"https://api.github.com/repos/wbuchwalter/ng-redux/issues/19","id":213273750,"user":{"login":"reinseth","id":154842,"avatar_url":"https://avatars.githubusercontent.com/u/154842?v=3","gravatar_id":"","url":"https://api.github.com/users/reinseth","html_url":"https://github.com/reinseth","followers_url":"https://api.github.com/users/reinseth/followers","following_url":"https://api.github.com/users/reinseth/following{/other_user}","gists_url":"https://api.github.com/users/reinseth/gists{/gist_id}","starred_url":"https://api.github.com/users/reinseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reinseth/subscriptions","organizations_url":"https://api.github.com/users/reinseth/orgs","repos_url":"https://api.github.com/users/reinseth/repos","events_url":"https://api.github.com/users/reinseth/events{/privacy}","received_events_url":"https://api.github.com/users/reinseth/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T05:57:03Z","updated_at":"2016-04-22T05:57:03Z","body":"@wbuchwalter: what if you remove the digest middleware altogether, and do $evalAsync in the connect function?\r\n\r\nI see two benefits with this approach:\r\n\r\n1. Fewer calls to $evalAsync as there are more actions than there are actual state changes (which the connector takes care of to detect) - this will be a performance benefit, especially if you have lot's of actions which does not affect the state of the components (e.g. a ticker for an audio player that updates the current track/segment title on every position update).\r\n\r\n2. Flexibility: the store can be created outside of angular."}}