{"action":"opened","number":32,"pull_request":{"url":"https://api.github.com/repos/gaearon/redux/pulls/32","id":36923960,"html_url":"https://github.com/gaearon/redux/pull/32","diff_url":"https://github.com/gaearon/redux/pull/32.diff","patch_url":"https://github.com/gaearon/redux/pull/32.patch","issue_url":"https://api.github.com/repos/gaearon/redux/issues/32","number":32,"state":"open","locked":false,"title":"Allow to get action result","user":{"login":"vslinko","id":205823,"avatar_url":"https://avatars.githubusercontent.com/u/205823?v=3","gravatar_id":"","url":"https://api.github.com/users/vslinko","html_url":"https://github.com/vslinko","followers_url":"https://api.github.com/users/vslinko/followers","following_url":"https://api.github.com/users/vslinko/following{/other_user}","gists_url":"https://api.github.com/users/vslinko/gists{/gist_id}","starred_url":"https://api.github.com/users/vslinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vslinko/subscriptions","organizations_url":"https://api.github.com/users/vslinko/orgs","repos_url":"https://api.github.com/users/vslinko/repos","events_url":"https://api.github.com/users/vslinko/events{/privacy}","received_events_url":"https://api.github.com/users/vslinko/received_events","type":"User","site_admin":false},"body":"I want to wait for an async action before React.renterToString on server. Example\r\n```\r\nfunction fetchDataForHomePageActionCreator() {\r\n  return async dispatch => {\r\n    await timeout(100)\r\n    dispatch({type: HOMEPAGE_DATA_LOADED})\r\n  }\r\n}\r\n\r\nasync function homepageHandler(request) {\r\n  const dispatcher = createDispatcher()\r\n  const prepare = dispatcher.wrapActionCreator(fetchDataForHomePageActionCreator)\r\n  await prepare()\r\n  return React.renderToString(<Dispatcher dispatcher={dispatcher}><HomePage /></Dispatcher>)\r\n}\r\n```","created_at":"2015-06-04T11:07:31Z","updated_at":"2015-06-04T11:07:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gaearon/redux/pulls/32/commits","review_comments_url":"https://api.github.com/repos/gaearon/redux/pulls/32/comments","review_comment_url":"https://api.github.com/repos/gaearon/redux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gaearon/redux/issues/32/comments","statuses_url":"https://api.github.com/repos/gaearon/redux/statuses/896db93b896e863e597781b33b37f610f71064e7","head":{"label":"vslinko:patch-1","ref":"patch-1","sha":"896db93b896e863e597781b33b37f610f71064e7","user":{"login":"vslinko","id":205823,"avatar_url":"https://avatars.githubusercontent.com/u/205823?v=3","gravatar_id":"","url":"https://api.github.com/users/vslinko","html_url":"https://github.com/vslinko","followers_url":"https://api.github.com/users/vslinko/followers","following_url":"https://api.github.com/users/vslinko/following{/other_user}","gists_url":"https://api.github.com/users/vslinko/gists{/gist_id}","starred_url":"https://api.github.com/users/vslinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vslinko/subscriptions","organizations_url":"https://api.github.com/users/vslinko/orgs","repos_url":"https://api.github.com/users/vslinko/repos","events_url":"https://api.github.com/users/vslinko/events{/privacy}","received_events_url":"https://api.github.com/users/vslinko/received_events","type":"User","site_admin":false},"repo":{"id":36865224,"name":"redux","full_name":"vslinko/redux","owner":{"login":"vslinko","id":205823,"avatar_url":"https://avatars.githubusercontent.com/u/205823?v=3","gravatar_id":"","url":"https://api.github.com/users/vslinko","html_url":"https://github.com/vslinko","followers_url":"https://api.github.com/users/vslinko/followers","following_url":"https://api.github.com/users/vslinko/following{/other_user}","gists_url":"https://api.github.com/users/vslinko/gists{/gist_id}","starred_url":"https://api.github.com/users/vslinko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vslinko/subscriptions","organizations_url":"https://api.github.com/users/vslinko/orgs","repos_url":"https://api.github.com/users/vslinko/repos","events_url":"https://api.github.com/users/vslinko/events{/privacy}","received_events_url":"https://api.github.com/users/vslinko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vslinko/redux","description":"An experiment in fully hot-reloadable Flux","fork":true,"url":"https://api.github.com/repos/vslinko/redux","forks_url":"https://api.github.com/repos/vslinko/redux/forks","keys_url":"https://api.github.com/repos/vslinko/redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vslinko/redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vslinko/redux/teams","hooks_url":"https://api.github.com/repos/vslinko/redux/hooks","issue_events_url":"https://api.github.com/repos/vslinko/redux/issues/events{/number}","events_url":"https://api.github.com/repos/vslinko/redux/events","assignees_url":"https://api.github.com/repos/vslinko/redux/assignees{/user}","branches_url":"https://api.github.com/repos/vslinko/redux/branches{/branch}","tags_url":"https://api.github.com/repos/vslinko/redux/tags","blobs_url":"https://api.github.com/repos/vslinko/redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vslinko/redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vslinko/redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/vslinko/redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vslinko/redux/statuses/{sha}","languages_url":"https://api.github.com/repos/vslinko/redux/languages","stargazers_url":"https://api.github.com/repos/vslinko/redux/stargazers","contributors_url":"https://api.github.com/repos/vslinko/redux/contributors","subscribers_url":"https://api.github.com/repos/vslinko/redux/subscribers","subscription_url":"https://api.github.com/repos/vslinko/redux/subscription","commits_url":"https://api.github.com/repos/vslinko/redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/vslinko/redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/vslinko/redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/vslinko/redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/vslinko/redux/contents/{+path}","compare_url":"https://api.github.com/repos/vslinko/redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vslinko/redux/merges","archive_url":"https://api.github.com/repos/vslinko/redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vslinko/redux/downloads","issues_url":"https://api.github.com/repos/vslinko/redux/issues{/number}","pulls_url":"https://api.github.com/repos/vslinko/redux/pulls{/number}","milestones_url":"https://api.github.com/repos/vslinko/redux/milestones{/number}","notifications_url":"https://api.github.com/repos/vslinko/redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vslinko/redux/labels{/name}","releases_url":"https://api.github.com/repos/vslinko/redux/releases{/id}","created_at":"2015-06-04T11:01:33Z","updated_at":"2015-06-04T11:01:33Z","pushed_at":"2015-06-04T11:07:23Z","git_url":"git://github.com/vslinko/redux.git","ssh_url":"git@github.com:vslinko/redux.git","clone_url":"https://github.com/vslinko/redux.git","svn_url":"https://github.com/vslinko/redux","homepage":"","size":633,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gaearon:master","ref":"master","sha":"a070368675fc6ba6405cb61fef9b40bc063ebd51","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},"repo":{"id":36535156,"name":"redux","full_name":"gaearon/redux","owner":{"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},"private":false,"html_url":"https://github.com/gaearon/redux","description":"An experiment in fully hot-reloadable Flux","fork":false,"url":"https://api.github.com/repos/gaearon/redux","forks_url":"https://api.github.com/repos/gaearon/redux/forks","keys_url":"https://api.github.com/repos/gaearon/redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaearon/redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaearon/redux/teams","hooks_url":"https://api.github.com/repos/gaearon/redux/hooks","issue_events_url":"https://api.github.com/repos/gaearon/redux/issues/events{/number}","events_url":"https://api.github.com/repos/gaearon/redux/events","assignees_url":"https://api.github.com/repos/gaearon/redux/assignees{/user}","branches_url":"https://api.github.com/repos/gaearon/redux/branches{/branch}","tags_url":"https://api.github.com/repos/gaearon/redux/tags","blobs_url":"https://api.github.com/repos/gaearon/redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaearon/redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaearon/redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaearon/redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaearon/redux/statuses/{sha}","languages_url":"https://api.github.com/repos/gaearon/redux/languages","stargazers_url":"https://api.github.com/repos/gaearon/redux/stargazers","contributors_url":"https://api.github.com/repos/gaearon/redux/contributors","subscribers_url":"https://api.github.com/repos/gaearon/redux/subscribers","subscription_url":"https://api.github.com/repos/gaearon/redux/subscription","commits_url":"https://api.github.com/repos/gaearon/redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaearon/redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaearon/redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaearon/redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaearon/redux/contents/{+path}","compare_url":"https://api.github.com/repos/gaearon/redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaearon/redux/merges","archive_url":"https://api.github.com/repos/gaearon/redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaearon/redux/downloads","issues_url":"https://api.github.com/repos/gaearon/redux/issues{/number}","pulls_url":"https://api.github.com/repos/gaearon/redux/pulls{/number}","milestones_url":"https://api.github.com/repos/gaearon/redux/milestones{/number}","notifications_url":"https://api.github.com/repos/gaearon/redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaearon/redux/labels{/name}","releases_url":"https://api.github.com/repos/gaearon/redux/releases{/id}","created_at":"2015-05-29T23:53:15Z","updated_at":"2015-06-04T11:01:01Z","pushed_at":"2015-06-03T23:17:40Z","git_url":"git://github.com/gaearon/redux.git","ssh_url":"git@github.com:gaearon/redux.git","clone_url":"https://github.com/gaearon/redux.git","svn_url":"https://github.com/gaearon/redux","homepage":"","size":633,"stargazers_count":138,"watchers_count":138,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":8,"forks":10,"open_issues":8,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gaearon/redux/pulls/32"},"html":{"href":"https://github.com/gaearon/redux/pull/32"},"issue":{"href":"https://api.github.com/repos/gaearon/redux/issues/32"},"comments":{"href":"https://api.github.com/repos/gaearon/redux/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/gaearon/redux/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/gaearon/redux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gaearon/redux/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/gaearon/redux/statuses/896db93b896e863e597781b33b37f610f71064e7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}