{"action":"created","issue":{"url":"https://api.github.com/repos/jhollingworth/marty/issues/84","labels_url":"https://api.github.com/repos/jhollingworth/marty/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/jhollingworth/marty/issues/84/comments","events_url":"https://api.github.com/repos/jhollingworth/marty/issues/84/events","html_url":"https://github.com/jhollingworth/marty/pull/84","id":55433140,"number":84,"title":"Make sure ActionCreators will work with es6 arrow syntax. Fixes #83","user":{"login":"amsayk","id":271111,"avatar_url":"https://avatars.githubusercontent.com/u/271111?v=3","gravatar_id":"","url":"https://api.github.com/users/amsayk","html_url":"https://github.com/amsayk","followers_url":"https://api.github.com/users/amsayk/followers","following_url":"https://api.github.com/users/amsayk/following{/other_user}","gists_url":"https://api.github.com/users/amsayk/gists{/gist_id}","starred_url":"https://api.github.com/users/amsayk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amsayk/subscriptions","organizations_url":"https://api.github.com/users/amsayk/orgs","repos_url":"https://api.github.com/users/amsayk/repos","events_url":"https://api.github.com/users/amsayk/events{/privacy}","received_events_url":"https://api.github.com/users/amsayk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-25T22:27:09Z","updated_at":"2015-01-26T19:12:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jhollingworth/marty/pulls/84","html_url":"https://github.com/jhollingworth/marty/pull/84","diff_url":"https://github.com/jhollingworth/marty/pull/84.diff","patch_url":"https://github.com/jhollingworth/marty/pull/84.patch"},"body":":lipstick:\r\n\r\nIn some es6 transpilers, ES6 arrow functions are bound to the current scope making it impossible to call `this.dispatch(...)` or other methods of the ActionCreators inside the callback. \r\n\r\nBy passing context as the last argument to the ActionCreator, one can use `context.dispatch(...)` or other methods of the ActionCreator.\r\n\r\nSince context is passed as the last argument, all existing code work as is and if you don't use es6 arrow syntax, you're not affected."},"comment":{"url":"https://api.github.com/repos/jhollingworth/marty/issues/comments/71518612","html_url":"https://github.com/jhollingworth/marty/pull/84#issuecomment-71518612","issue_url":"https://api.github.com/repos/jhollingworth/marty/issues/84","id":71518612,"user":{"login":"jhollingworth","id":151172,"avatar_url":"https://avatars.githubusercontent.com/u/151172?v=3","gravatar_id":"","url":"https://api.github.com/users/jhollingworth","html_url":"https://github.com/jhollingworth","followers_url":"https://api.github.com/users/jhollingworth/followers","following_url":"https://api.github.com/users/jhollingworth/following{/other_user}","gists_url":"https://api.github.com/users/jhollingworth/gists{/gist_id}","starred_url":"https://api.github.com/users/jhollingworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhollingworth/subscriptions","organizations_url":"https://api.github.com/users/jhollingworth/orgs","repos_url":"https://api.github.com/users/jhollingworth/repos","events_url":"https://api.github.com/users/jhollingworth/events{/privacy}","received_events_url":"https://api.github.com/users/jhollingworth/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T19:12:48Z","updated_at":"2015-01-26T19:12:48Z","body":"This does feel a bit like a misuse of the syntax. Fat arrow function's are designed to ensure that the function context is set to the current context. It's terseness is just a side effect. \r\n\r\nI really don't see what value fat arrow functions bring here except removing 6 characters. I'm wondering if its just better to advise against using them here?"}}