{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/redux/issues/1676","repository_url":"https://api.github.com/repos/reactjs/redux","labels_url":"https://api.github.com/repos/reactjs/redux/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/redux/issues/1676/comments","events_url":"https://api.github.com/repos/reactjs/redux/issues/1676/events","html_url":"https://github.com/reactjs/redux/issues/1676","id":151625191,"number":1676,"title":"How to chain async actions?","user":{"login":"ar53n","id":7085102,"avatar_url":"https://avatars.githubusercontent.com/u/7085102?v=3","gravatar_id":"","url":"https://api.github.com/users/ar53n","html_url":"https://github.com/ar53n","followers_url":"https://api.github.com/users/ar53n/followers","following_url":"https://api.github.com/users/ar53n/following{/other_user}","gists_url":"https://api.github.com/users/ar53n/gists{/gist_id}","starred_url":"https://api.github.com/users/ar53n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar53n/subscriptions","organizations_url":"https://api.github.com/users/ar53n/orgs","repos_url":"https://api.github.com/users/ar53n/repos","events_url":"https://api.github.com/users/ar53n/events{/privacy}","received_events_url":"https://api.github.com/users/ar53n/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactjs/redux/labels/docs","name":"docs","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-28T12:07:28Z","updated_at":"2016-05-04T13:10:39Z","closed_at":null,"body":"Hello, I have been studying Redux and faced with an interesting problem? need to make a chain of asynchronous requests from other Actions\r\n1-getUser()\r\n2-getPost()\r\n\r\nI have 2 solution execute after sign in user .then(dispatch({type:GET_POST_REQUEST}))\r\nor write function in middleWare.\r\n\r\nHow it to do correctly?"},"comment":{"url":"https://api.github.com/repos/reactjs/redux/issues/comments/216857361","html_url":"https://github.com/reactjs/redux/issues/1676#issuecomment-216857361","issue_url":"https://api.github.com/repos/reactjs/redux/issues/1676","id":216857361,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T13:10:39Z","updated_at":"2016-05-04T13:10:39Z","body":"This works too, which pattern to use is up to you."}}