{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/redux/issues/79","labels_url":"https://api.github.com/repos/gaearon/redux/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/redux/issues/79/comments","events_url":"https://api.github.com/repos/gaearon/redux/issues/79/events","html_url":"https://github.com/gaearon/redux/pull/79","id":88012435,"number":79,"title":"Export default middlewares and use consistent naming","user":{"login":"emmenko","id":1110551,"avatar_url":"https://avatars.githubusercontent.com/u/1110551?v=3","gravatar_id":"","url":"https://api.github.com/users/emmenko","html_url":"https://github.com/emmenko","followers_url":"https://api.github.com/users/emmenko/followers","following_url":"https://api.github.com/users/emmenko/following{/other_user}","gists_url":"https://api.github.com/users/emmenko/gists{/gist_id}","starred_url":"https://api.github.com/users/emmenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmenko/subscriptions","organizations_url":"https://api.github.com/users/emmenko/orgs","repos_url":"https://api.github.com/users/emmenko/repos","events_url":"https://api.github.com/users/emmenko/events{/privacy}","received_events_url":"https://api.github.com/users/emmenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-13T14:30:04Z","updated_at":"2015-06-13T17:20:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gaearon/redux/pulls/79","html_url":"https://github.com/gaearon/redux/pull/79","diff_url":"https://github.com/gaearon/redux/pull/79.diff","patch_url":"https://github.com/gaearon/redux/pull/79.patch"},"body":"To be consistent with e.g.: `composeStores`.\r\n\r\nAlso exporting the default `thunk` middleware is useful if I need to create a dispatcher with other middlewares, for example:\r\n\r\n```js\r\nimport { createDispatcher, composeStores, middlewares } = 'redux';\r\nimport loggerMiddleware from './middlewares/logger';\r\nimport * as stores from './stores';\r\n\r\nconst dispatcher = createDispatcher(\r\n  composeStores(stores),\r\n  getState => [middlewares.thunk(getState), loggerMiddleware(getState)]\r\n);\r\n```\r\n\r\nDoes it make sense?"},"comment":{"url":"https://api.github.com/repos/gaearon/redux/issues/comments/111733462","html_url":"https://github.com/gaearon/redux/pull/79#issuecomment-111733462","issue_url":"https://api.github.com/repos/gaearon/redux/issues/79","id":111733462,"user":{"login":"acdlite","id":3624098,"avatar_url":"https://avatars.githubusercontent.com/u/3624098?v=3","gravatar_id":"","url":"https://api.github.com/users/acdlite","html_url":"https://github.com/acdlite","followers_url":"https://api.github.com/users/acdlite/followers","following_url":"https://api.github.com/users/acdlite/following{/other_user}","gists_url":"https://api.github.com/users/acdlite/gists{/gist_id}","starred_url":"https://api.github.com/users/acdlite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acdlite/subscriptions","organizations_url":"https://api.github.com/users/acdlite/orgs","repos_url":"https://api.github.com/users/acdlite/repos","events_url":"https://api.github.com/users/acdlite/events{/privacy}","received_events_url":"https://api.github.com/users/acdlite/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T17:20:02Z","updated_at":"2015-06-13T17:20:02Z","body":"I don't think `redux/middleware/thunk` would be so bad. The alternative is to publish it separately on npm, which... I dunno, feels like overkill for a 10 line function :D"}}