{"action":"created","issue":{"url":"https://api.github.com/repos/acdlite/redux-actions/issues/12","labels_url":"https://api.github.com/repos/acdlite/redux-actions/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/acdlite/redux-actions/issues/12/comments","events_url":"https://api.github.com/repos/acdlite/redux-actions/issues/12/events","html_url":"https://github.com/acdlite/redux-actions/issues/12","id":96610406,"number":12,"title":"Multiple handlers per action","user":{"login":"nd0ut","id":670959,"avatar_url":"https://avatars.githubusercontent.com/u/670959?v=3","gravatar_id":"","url":"https://api.github.com/users/nd0ut","html_url":"https://github.com/nd0ut","followers_url":"https://api.github.com/users/nd0ut/followers","following_url":"https://api.github.com/users/nd0ut/following{/other_user}","gists_url":"https://api.github.com/users/nd0ut/gists{/gist_id}","starred_url":"https://api.github.com/users/nd0ut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nd0ut/subscriptions","organizations_url":"https://api.github.com/users/nd0ut/orgs","repos_url":"https://api.github.com/users/nd0ut/repos","events_url":"https://api.github.com/users/nd0ut/events{/privacy}","received_events_url":"https://api.github.com/users/nd0ut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-22T16:31:41Z","updated_at":"2015-11-23T02:47:20Z","closed_at":"2015-11-23T02:47:20Z","body":"How about this?\r\n```javascript\r\nconst reducer = handleActions({\r\n  SELECT_PRODUCT: [select, setColor],\r\n  UNSELECT_PRODUCT: [unselect, unsetColor]\r\n}, initialState);\r\n```"},"comment":{"url":"https://api.github.com/repos/acdlite/redux-actions/issues/comments/158838400","html_url":"https://github.com/acdlite/redux-actions/issues/12#issuecomment-158838400","issue_url":"https://api.github.com/repos/acdlite/redux-actions/issues/12","id":158838400,"user":{"login":"lukewestby","id":1508245,"avatar_url":"https://avatars.githubusercontent.com/u/1508245?v=3","gravatar_id":"","url":"https://api.github.com/users/lukewestby","html_url":"https://github.com/lukewestby","followers_url":"https://api.github.com/users/lukewestby/followers","following_url":"https://api.github.com/users/lukewestby/following{/other_user}","gists_url":"https://api.github.com/users/lukewestby/gists{/gist_id}","starred_url":"https://api.github.com/users/lukewestby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukewestby/subscriptions","organizations_url":"https://api.github.com/users/lukewestby/orgs","repos_url":"https://api.github.com/users/lukewestby/repos","events_url":"https://api.github.com/users/lukewestby/events{/privacy}","received_events_url":"https://api.github.com/users/lukewestby/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T02:47:20Z","updated_at":"2015-11-23T02:47:20Z","body":"@nd0ut I'm going to close this for now, and offer a suggestion:\r\n\r\nIf you would like to compose several functions for use as a single reducer you can use `_.flow()` or `_.flowRight()` from lodash to accomplish this, depending on the order you'd like them to be called.\r\n\r\n- https://lodash.com/docs#flow\r\n- https://lodash.com/docs#flowRight\r\n\r\n```js\r\nimport { flow } from 'lodash';\r\nconst reducer = handleActions({\r\n  SELECT_PRODUCT: flow(select, setColor),\r\n  UNSELECT_PRODUCT: flow(unselect, unsetColor)\r\n}, initialState);\r\n```"}}