{"action":"created","issue":{"url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/133","repository_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware","labels_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/133/comments","events_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/133/events","html_url":"https://github.com/pburtchaell/redux-promise-middleware/issues/133","id":196480908,"number":133,"title":"Sending data alongside error object","user":{"login":"cubbuk","id":1243896,"avatar_url":"https://avatars.githubusercontent.com/u/1243896?v=3","gravatar_id":"","url":"https://api.github.com/users/cubbuk","html_url":"https://github.com/cubbuk","followers_url":"https://api.github.com/users/cubbuk/followers","following_url":"https://api.github.com/users/cubbuk/following{/other_user}","gists_url":"https://api.github.com/users/cubbuk/gists{/gist_id}","starred_url":"https://api.github.com/users/cubbuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubbuk/subscriptions","organizations_url":"https://api.github.com/users/cubbuk/orgs","repos_url":"https://api.github.com/users/cubbuk/repos","events_url":"https://api.github.com/users/cubbuk/events{/privacy}","received_events_url":"https://api.github.com/users/cubbuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-19T17:59:46Z","updated_at":"2016-12-19T18:06:56Z","closed_at":null,"body":"---\r\n\r\n## Version Number\r\n4.2.0\r\n\r\nIs there a way to send some data alongside error object similar to sending data during `pending` state for optimistic updates? I have a list of item and I need id of the item to update object with error info during an async operation. Any suggestions how to handle that scenario?\r\n\r\n---\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/comments/268034567","html_url":"https://github.com/pburtchaell/redux-promise-middleware/issues/133#issuecomment-268034567","issue_url":"https://api.github.com/repos/pburtchaell/redux-promise-middleware/issues/133","id":268034567,"user":{"login":"pburtchaell","id":3857324,"avatar_url":"https://avatars.githubusercontent.com/u/3857324?v=3","gravatar_id":"","url":"https://api.github.com/users/pburtchaell","html_url":"https://github.com/pburtchaell","followers_url":"https://api.github.com/users/pburtchaell/followers","following_url":"https://api.github.com/users/pburtchaell/following{/other_user}","gists_url":"https://api.github.com/users/pburtchaell/gists{/gist_id}","starred_url":"https://api.github.com/users/pburtchaell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pburtchaell/subscriptions","organizations_url":"https://api.github.com/users/pburtchaell/orgs","repos_url":"https://api.github.com/users/pburtchaell/repos","events_url":"https://api.github.com/users/pburtchaell/events{/privacy}","received_events_url":"https://api.github.com/users/pburtchaell/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T18:06:56Z","updated_at":"2016-12-19T18:06:56Z","body":"Can you reject the promise with the `id` of the item?\r\n\r\n```js\r\nnew Promise((resolve, reject) => {\r\n  reject(new Error(id)); // Reject with the id\r\n});\r\n```\r\n\r\nYou can also look into custom error types, [which are documented on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)."}}
{"actor":{"display_login":"pburtchaell"}}