{"action":"created","issue":{"url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/10","labels_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/10/comments","events_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/10/events","html_url":"https://github.com/pburtchaell/redux-promise-middleware/pull/10","id":109140698,"number":10,"title":"Default promise types","user":{"login":"tomatau","id":1243486,"avatar_url":"https://avatars.githubusercontent.com/u/1243486?v=3","gravatar_id":"","url":"https://api.github.com/users/tomatau","html_url":"https://github.com/tomatau","followers_url":"https://api.github.com/users/tomatau/followers","following_url":"https://api.github.com/users/tomatau/following{/other_user}","gists_url":"https://api.github.com/users/tomatau/gists{/gist_id}","starred_url":"https://api.github.com/users/tomatau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomatau/subscriptions","organizations_url":"https://api.github.com/users/tomatau/orgs","repos_url":"https://api.github.com/users/tomatau/repos","events_url":"https://api.github.com/users/tomatau/events{/privacy}","received_events_url":"https://api.github.com/users/tomatau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-30T17:27:56Z","updated_at":"2015-10-23T19:27:20Z","closed_at":"2015-10-23T18:53:39Z","pull_request":{"url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/pulls/10","html_url":"https://github.com/pburtchaell/redux-promise-middleware/pull/10","diff_url":"https://github.com/pburtchaell/redux-promise-middleware/pull/10.diff","patch_url":"https://github.com/pburtchaell/redux-promise-middleware/pull/10.patch"},"body":"Resolves #1.\r\n\r\nAutomatically assumes promise types of PENDING, FULFILLED, REJECTED.\r\nInitial action now only needs to contain a single type.\r\n\r\nCan customise the types at the middleware level:\r\n\r\n```js\r\napplyMiddleware(\r\n  promiseMiddleware({\r\n    promiseTypes: ['WAIT', 'YAY', 'BUGGER']\r\n  })\r\n```\r\n\r\nbreaking change: when adding the middleware, it must be invoked even if you don't supply custom types:\r\n```js\r\napplyMiddleware(\r\n  promiseMiddleware()\r\n...\r\n// defaults to PENDING, FULFILLED, REJECTED\r\n```\r\n\r\nor override both at dispatch with the same payload as before, just add the types array to you meta object:\r\n```js\r\ndispatch({\r\n  type, payload, meta: {\r\n    promiseTypes: [ 'MAYBE', 'AWESOME', '*!@£' ]\r\n  }\r\n})\r\n```"},"comment":{"url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/comments/150669561","html_url":"https://github.com/pburtchaell/redux-promise-middleware/pull/10#issuecomment-150669561","issue_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/10","id":150669561,"user":{"login":"tomatau","id":1243486,"avatar_url":"https://avatars.githubusercontent.com/u/1243486?v=3","gravatar_id":"","url":"https://api.github.com/users/tomatau","html_url":"https://github.com/tomatau","followers_url":"https://api.github.com/users/tomatau/followers","following_url":"https://api.github.com/users/tomatau/following{/other_user}","gists_url":"https://api.github.com/users/tomatau/gists{/gist_id}","starred_url":"https://api.github.com/users/tomatau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomatau/subscriptions","organizations_url":"https://api.github.com/users/tomatau/orgs","repos_url":"https://api.github.com/users/tomatau/repos","events_url":"https://api.github.com/users/tomatau/events{/privacy}","received_events_url":"https://api.github.com/users/tomatau/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T19:27:20Z","updated_at":"2015-10-23T19:27:20Z","body":"cool :+1: "}}