{"action":"closed","issue":{"url":"https://api.github.com/repos/spoike/refluxjs/issues/217","labels_url":"https://api.github.com/repos/spoike/refluxjs/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/spoike/refluxjs/issues/217/comments","events_url":"https://api.github.com/repos/spoike/refluxjs/issues/217/events","html_url":"https://github.com/spoike/refluxjs/issues/217","id":56137946,"number":217,"title":"Handling one store with multiple different objects","user":{"login":"OAGr","id":377065,"avatar_url":"https://avatars.githubusercontent.com/u/377065?v=3","gravatar_id":"","url":"https://api.github.com/users/OAGr","html_url":"https://github.com/OAGr","followers_url":"https://api.github.com/users/OAGr/followers","following_url":"https://api.github.com/users/OAGr/following{/other_user}","gists_url":"https://api.github.com/users/OAGr/gists{/gist_id}","starred_url":"https://api.github.com/users/OAGr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OAGr/subscriptions","organizations_url":"https://api.github.com/users/OAGr/orgs","repos_url":"https://api.github.com/users/OAGr/repos","events_url":"https://api.github.com/users/OAGr/events{/privacy}","received_events_url":"https://api.github.com/users/OAGr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-31T20:24:21Z","updated_at":"2015-02-02T03:48:29Z","closed_at":"2015-02-02T03:48:29Z","body":"In the [Facebook Chat example](https://github.com/facebook/flux/blob/master/examples/flux-chat/js/stores/ThreadStore.js), they use one store (the thread store) to handle both the list of the _threads and the _currentID of the current thread.\r\n\r\nI'm trying to do a similar thing with Reflux.  On the whole it seems possible, except that stores seem to include a getInitialState method with only one return value.  \r\n\r\n```\r\nvar exampleStore = Reflux.createStore({\r\n    init: function() {},\r\n    getInitialState: function() {\r\n        return \"the initial data\";\r\n    }\r\n});\r\n```\r\n\r\nI like the [Issue 174](https://github.com/spoike/refluxjs/issues/174) improvement, which would solve this, essentially by making this return value a hash.  However, in the mean time,\r\n  \r\n1.  Is there any way to get getInitialState to return multiple arguments?\r\n2.  Would it be recommended to split up _threads and _currentID in a reflux application?"}}