{"action":"created","issue":{"url":"https://api.github.com/repos/acdlite/flummox/issues/233","labels_url":"https://api.github.com/repos/acdlite/flummox/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/acdlite/flummox/issues/233/comments","events_url":"https://api.github.com/repos/acdlite/flummox/issues/233/events","html_url":"https://github.com/acdlite/flummox/issues/233","id":86718254,"number":233,"title":"connectToStores: Enable using both Array and Object for defining stores","user":{"login":"bamorim","id":828081,"avatar_url":"https://avatars.githubusercontent.com/u/828081?v=3","gravatar_id":"","url":"https://api.github.com/users/bamorim","html_url":"https://github.com/bamorim","followers_url":"https://api.github.com/users/bamorim/followers","following_url":"https://api.github.com/users/bamorim/following{/other_user}","gists_url":"https://api.github.com/users/bamorim/gists{/gist_id}","starred_url":"https://api.github.com/users/bamorim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamorim/subscriptions","organizations_url":"https://api.github.com/users/bamorim/orgs","repos_url":"https://api.github.com/users/bamorim/repos","events_url":"https://api.github.com/users/bamorim/events{/privacy}","received_events_url":"https://api.github.com/users/bamorim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acdlite/flummox/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-09T20:05:29Z","updated_at":"2015-06-10T09:31:28Z","closed_at":"2015-06-09T21:45:40Z","body":"Hi everyone. I don't know If this is already possible, but looking at the source code doesnt look like it is. I just think that It's a nice to have addition. (being able to use all kinds of getters :D)\r\n\r\nI have a component where I need to get 3 values from stores with the same name (as used in the stateGetterMap) but for only one store i need to call a getter method on my store.\r\nI wanted to do:\r\n\r\n```javascript\r\nexport default connectToStores(\r\n  HomeHandler,\r\n  [\"themes\", \"guides\", \"defaultGuides\"],\r\n  {                                                                                                                                                                                            \r\n    disciplines: (store) => ({ disciplines: store.getDisciplines() })\r\n  }\r\n);\r\n```\r\n\r\nBut I had to rewrite it to\r\n```javascript\r\nexport default connectToStores(\r\n  HomeHandler,\r\n  {\r\n    themes: ({state: {themes}}) => ({themes})\r\n    guides: ({state: {guides}}) => ({guides}),\r\n    defaultGuides: ({state: {defaultGuides}}) => ({defaultGuides}),\r\n    disciplines: (store) => ({ disciplines: store.getDisciplines() })\r\n  }\r\n);\r\n```\r\n\r\nWhich is a little bit more verbose. What do you think?"},"comment":{"url":"https://api.github.com/repos/acdlite/flummox/issues/comments/110670730","html_url":"https://github.com/acdlite/flummox/issues/233#issuecomment-110670730","issue_url":"https://api.github.com/repos/acdlite/flummox/issues/233","id":110670730,"user":{"login":"johanneslumpe","id":3470207,"avatar_url":"https://avatars.githubusercontent.com/u/3470207?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneslumpe","html_url":"https://github.com/johanneslumpe","followers_url":"https://api.github.com/users/johanneslumpe/followers","following_url":"https://api.github.com/users/johanneslumpe/following{/other_user}","gists_url":"https://api.github.com/users/johanneslumpe/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneslumpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneslumpe/subscriptions","organizations_url":"https://api.github.com/users/johanneslumpe/orgs","repos_url":"https://api.github.com/users/johanneslumpe/repos","events_url":"https://api.github.com/users/johanneslumpe/events{/privacy}","received_events_url":"https://api.github.com/users/johanneslumpe/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T09:31:28Z","updated_at":"2015-06-10T09:31:28Z","body":"/cc @acdlite "}}