{"action":"created","comment":{"url":"https://api.github.com/repos/gaearon/redux/pulls/comments/35751081","id":35751081,"diff_hunk":"@@ -1,13 +1,18 @@\n import mapValues from '../utils/mapValues';\n \n+function bindActionCreator(actionCreator, dispatch) {\n+    return (...args) => dispatch(actionCreator(...args));","path":"src/utils/bindActionCreators.js","position":4,"original_position":4,"commit_id":"f3be6401d89ca6c9e7959c8346365180397f20e0","original_commit_id":"f3be6401d89ca6c9e7959c8346365180397f20e0","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},"body":"Should be two spaces","created_at":"2015-07-29T11:59:28Z","updated_at":"2015-07-29T11:59:28Z","html_url":"https://github.com/gaearon/redux/pull/352#discussion_r35751081","pull_request_url":"https://api.github.com/repos/gaearon/redux/pulls/352","_links":{"self":{"href":"https://api.github.com/repos/gaearon/redux/pulls/comments/35751081"},"html":{"href":"https://github.com/gaearon/redux/pull/352#discussion_r35751081"},"pull_request":{"href":"https://api.github.com/repos/gaearon/redux/pulls/352"}}},"pull_request":{"url":"https://api.github.com/repos/gaearon/redux/pulls/352","id":41114747,"html_url":"https://github.com/gaearon/redux/pull/352","diff_url":"https://github.com/gaearon/redux/pull/352.diff","patch_url":"https://github.com/gaearon/redux/pull/352.patch","issue_url":"https://api.github.com/repos/gaearon/redux/issues/352","number":352,"state":"open","locked":false,"title":"Allow `bindActionCreators` to be used with function as actionCreator","user":{"login":"michaelcontento","id":280532,"avatar_url":"https://avatars.githubusercontent.com/u/280532?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelcontento","html_url":"https://github.com/michaelcontento","followers_url":"https://api.github.com/users/michaelcontento/followers","following_url":"https://api.github.com/users/michaelcontento/following{/other_user}","gists_url":"https://api.github.com/users/michaelcontento/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelcontento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelcontento/subscriptions","organizations_url":"https://api.github.com/users/michaelcontento/orgs","repos_url":"https://api.github.com/users/michaelcontento/repos","events_url":"https://api.github.com/users/michaelcontento/events{/privacy}","received_events_url":"https://api.github.com/users/michaelcontento/received_events","type":"User","site_admin":false},"body":"With this change you can use `bindActionCreators` to either bind a object of actionCreator functions to dispatch or only a single actionCreator directly.\r\n\r\n```js\r\nimport { bindActionCreators } from 'redux';\r\nimport { addTodo } from './actions/todoActions';\r\n\r\nconst boundAddTodo = bindActionCreators(addTodo, dispatch);\r\nboundAddTodo('Hello');\r\n```","created_at":"2015-07-29T11:57:54Z","updated_at":"2015-07-29T11:59:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91510babe17616c6d6f89d70b5715e9e1d3dcbed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gaearon/redux/pulls/352/commits","review_comments_url":"https://api.github.com/repos/gaearon/redux/pulls/352/comments","review_comment_url":"https://api.github.com/repos/gaearon/redux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gaearon/redux/issues/352/comments","statuses_url":"https://api.github.com/repos/gaearon/redux/statuses/f3be6401d89ca6c9e7959c8346365180397f20e0","head":{"label":"michaelcontento:function-support-for-bindActionCreators","ref":"function-support-for-bindActionCreators","sha":"f3be6401d89ca6c9e7959c8346365180397f20e0","user":{"login":"michaelcontento","id":280532,"avatar_url":"https://avatars.githubusercontent.com/u/280532?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelcontento","html_url":"https://github.com/michaelcontento","followers_url":"https://api.github.com/users/michaelcontento/followers","following_url":"https://api.github.com/users/michaelcontento/following{/other_user}","gists_url":"https://api.github.com/users/michaelcontento/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelcontento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelcontento/subscriptions","organizations_url":"https://api.github.com/users/michaelcontento/orgs","repos_url":"https://api.github.com/users/michaelcontento/repos","events_url":"https://api.github.com/users/michaelcontento/events{/privacy}","received_events_url":"https://api.github.com/users/michaelcontento/received_events","type":"User","site_admin":false},"repo":{"id":39890041,"name":"redux","full_name":"michaelcontento/redux","owner":{"login":"michaelcontento","id":280532,"avatar_url":"https://avatars.githubusercontent.com/u/280532?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelcontento","html_url":"https://github.com/michaelcontento","followers_url":"https://api.github.com/users/michaelcontento/followers","following_url":"https://api.github.com/users/michaelcontento/following{/other_user}","gists_url":"https://api.github.com/users/michaelcontento/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelcontento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelcontento/subscriptions","organizations_url":"https://api.github.com/users/michaelcontento/orgs","repos_url":"https://api.github.com/users/michaelcontento/repos","events_url":"https://api.github.com/users/michaelcontento/events{/privacy}","received_events_url":"https://api.github.com/users/michaelcontento/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelcontento/redux","description":"Predictable state management for JavaScript apps","fork":true,"url":"https://api.github.com/repos/michaelcontento/redux","forks_url":"https://api.github.com/repos/michaelcontento/redux/forks","keys_url":"https://api.github.com/repos/michaelcontento/redux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelcontento/redux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelcontento/redux/teams","hooks_url":"https://api.github.com/repos/michaelcontento/redux/hooks","issue_events_url":"https://api.github.com/repos/michaelcontento/redux/issues/events{/number}","events_url":"https://api.github.com/repos/michaelcontento/redux/events","assignees_url":"https://api.github.com/repos/michaelcontento/redux/assignees{/user}","branches_url":"https://api.github.com/repos/michaelcontento/redux/branches{/branch}","tags_url":"https://api.github.com/repos/michaelcontento/redux/tags","blobs_url":"https://api.github.com/repos/michaelcontento/redux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelcontento/redux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelcontento/redux/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelcontento/redux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelcontento/redux/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelcontento/redux/languages","stargazers_url":"https://api.github.com/repos/michaelcontento/redux/stargazers","contributors_url":"https://api.github.com/repos/michaelcontento/redux/contributors","subscribers_url":"https://api.github.com/repos/michaelcontento/redux/subscribers","subscription_url":"https://api.github.com/repos/michaelcontento/redux/subscription","commits_url":"https://api.github.com/repos/michaelcontento/redux/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelcontento/redux/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelcontento/redux/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelcontento/redux/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelcontento/redux/contents/{+path}","compare_url":"https://api.github.com/repos/michaelcontento/redux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelcontento/redux/merges","archive_url":"https://api.github.com/repos/michaelcontento/redux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelcontento/redux/downloads","issues_url":"https://api.github.com/repos/michaelcontento/redux/issues{/number}","pulls_url":"https://api.github.com/repos/michaelcontento/redux/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelcontento/redux/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelcontento/redux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelcontento/redux/labels{/name}","releases_url":"https://api.github.com/repos/michaelcontento/redux/releases{/id}","created_at":"2015-07-29T11:33:03Z","updated_at":"2015-07-29T11:33:03Z","pushed_at":"2015-07-29T11:56:36Z","git_url":"git://github.com/michaelcontento/redux.git","ssh_url":"git@github.com:michaelcontento/redux.git","clone_url":"https://github.com/michaelcontento/redux.git","svn_url":"https://github.com/michaelcontento/redux","homepage":"","size":3623,"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:breaking-changes-1.0","ref":"breaking-changes-1.0","sha":"0fc58022040737347518180619f53f7445aaa900","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":"Predictable state management for JavaScript apps","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-07-29T11:45:50Z","pushed_at":"2015-07-29T11:57:54Z","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":3623,"stargazers_count":3107,"watchers_count":3107,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":59,"forks":201,"open_issues":59,"watchers":3107,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gaearon/redux/pulls/352"},"html":{"href":"https://github.com/gaearon/redux/pull/352"},"issue":{"href":"https://api.github.com/repos/gaearon/redux/issues/352"},"comments":{"href":"https://api.github.com/repos/gaearon/redux/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/gaearon/redux/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/gaearon/redux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gaearon/redux/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/gaearon/redux/statuses/f3be6401d89ca6c9e7959c8346365180397f20e0"}}}}