{"action":"opened","issue":{"url":"https://api.github.com/repos/goatslacker/alt/issues/402","labels_url":"https://api.github.com/repos/goatslacker/alt/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/402/comments","events_url":"https://api.github.com/repos/goatslacker/alt/issues/402/events","html_url":"https://github.com/goatslacker/alt/issues/402","id":95239790,"number":402,"title":"Component methods undefined after using connectToStores","user":{"login":"xpepermint","id":174279,"avatar_url":"https://avatars.githubusercontent.com/u/174279?v=3","gravatar_id":"","url":"https://api.github.com/users/xpepermint","html_url":"https://github.com/xpepermint","followers_url":"https://api.github.com/users/xpepermint/followers","following_url":"https://api.github.com/users/xpepermint/following{/other_user}","gists_url":"https://api.github.com/users/xpepermint/gists{/gist_id}","starred_url":"https://api.github.com/users/xpepermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpepermint/subscriptions","organizations_url":"https://api.github.com/users/xpepermint/orgs","repos_url":"https://api.github.com/users/xpepermint/repos","events_url":"https://api.github.com/users/xpepermint/events{/privacy}","received_events_url":"https://api.github.com/users/xpepermint/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T16:47:36Z","updated_at":"2015-07-15T16:47:36Z","closed_at":null,"body":"I wrap my component with `connectToStores` and then I would like to further extend it.\r\n\r\n```js\r\n// simplified component example\r\nimport connectToStores from 'alt/utils/connectToStores';\r\nimport connectToSockets from 'my-extension-which-like-connectToStores';\r\nimport React from 'react';\r\nimport LocationActions from '../actions/LocationActions';\r\nimport LocationStore from '../stores/LocationStore';\r\nimport LocationSocket from '../sockets/LocationSocket';\r\n\r\nclass Locations extends React.Component {\r\n  static getStores() {\r\n    return [LocationStore];\r\n  }\r\n\r\n  static getSockets() {\r\n    return [LocationSocket];\r\n  }\r\n\r\n  static getPropsFromStores() {\r\n    return LocationStore.getState();\r\n  }\r\n\r\n  render() {\r\n    return (\r\n      <ul>\r\n        {this.props.locations.map((location) => {\r\n          return (\r\n            <li key={location.id}>\r\n              <b>{location.name}</b>\r\n              <span>, {location.updatedAt}</span>\r\n            </li>\r\n          );\r\n        })}\r\n      </ul>\r\n    );\r\n  }\r\n}\r\n\r\nexport default connectToSockets(connectToStores(Locations));\r\n```\r\nMethod `connectToSockets` will throw error saying `getSockets method is not found`. That's because `connectToStores` does not copy custom static methods. Any suggestions?"}}