{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/redux/issues/1096","labels_url":"https://api.github.com/repos/rackt/redux/issues/1096/labels{/name}","comments_url":"https://api.github.com/repos/rackt/redux/issues/1096/comments","events_url":"https://api.github.com/repos/rackt/redux/issues/1096/events","html_url":"https://github.com/rackt/redux/pull/1096","id":120256164,"number":1096,"title":"Add an optional 'callback' to dispatch","user":{"login":"mhodgson","id":8408,"avatar_url":"https://avatars.githubusercontent.com/u/8408?v=3","gravatar_id":"","url":"https://api.github.com/users/mhodgson","html_url":"https://github.com/mhodgson","followers_url":"https://api.github.com/users/mhodgson/followers","following_url":"https://api.github.com/users/mhodgson/following{/other_user}","gists_url":"https://api.github.com/users/mhodgson/gists{/gist_id}","starred_url":"https://api.github.com/users/mhodgson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhodgson/subscriptions","organizations_url":"https://api.github.com/users/mhodgson/orgs","repos_url":"https://api.github.com/users/mhodgson/repos","events_url":"https://api.github.com/users/mhodgson/events{/privacy}","received_events_url":"https://api.github.com/users/mhodgson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-03T19:56:29Z","updated_at":"2015-12-04T15:33:38Z","closed_at":"2015-12-04T15:33:37Z","pull_request":{"url":"https://api.github.com/repos/rackt/redux/pulls/1096","html_url":"https://github.com/rackt/redux/pull/1096","diff_url":"https://github.com/rackt/redux/pull/1096.diff","patch_url":"https://github.com/rackt/redux/pull/1096.patch"},"body":"Called when all listeners have resolved. \r\n\r\nThis enables a dispatch caller to run a callback once all changes from an action have been flushed and rendered (in my case to the DOM via React). \r\n\r\nI didn't include a promise implementation here since I don't know what people's preferences are. \r\n\r\nThoughts about this? I have a specific use case around DOM selection binding that this enables.\r\n\r\nSee https://github.com/rackt/react-redux/pull/208 for related change to react-redux."},"comment":{"url":"https://api.github.com/repos/rackt/redux/issues/comments/161996849","html_url":"https://github.com/rackt/redux/pull/1096#issuecomment-161996849","issue_url":"https://api.github.com/repos/rackt/redux/issues/1096","id":161996849,"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":"2015-12-04T15:33:37Z","updated_at":"2015-12-04T15:33:37Z","body":"I don't think we want to get this in.\r\nThe store acts like a very simple event emitter.\r\nWe don't want to make it more complex.\r\n\r\nI don't know what a better solution would look like but it shouldn't involve Redux.\r\nIt's similar to how you wouldn't modify Rx or EventEmitter to fix a similar problem.\r\nIt's just not their concern."}}