{"action":"created","issue":{"url":"https://api.github.com/repos/altjs/connect-to-stores/issues/2","labels_url":"https://api.github.com/repos/altjs/connect-to-stores/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/altjs/connect-to-stores/issues/2/comments","events_url":"https://api.github.com/repos/altjs/connect-to-stores/issues/2/events","html_url":"https://github.com/altjs/connect-to-stores/issues/2","id":118336093,"number":2,"title":"@connectToStores breaks parameters in render() method","user":{"login":"mqklin","id":9456433,"avatar_url":"https://avatars.githubusercontent.com/u/9456433?v=3","gravatar_id":"","url":"https://api.github.com/users/mqklin","html_url":"https://github.com/mqklin","followers_url":"https://api.github.com/users/mqklin/followers","following_url":"https://api.github.com/users/mqklin/following{/other_user}","gists_url":"https://api.github.com/users/mqklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mqklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mqklin/subscriptions","organizations_url":"https://api.github.com/users/mqklin/orgs","repos_url":"https://api.github.com/users/mqklin/repos","events_url":"https://api.github.com/users/mqklin/events{/privacy}","received_events_url":"https://api.github.com/users/mqklin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-23T08:16:18Z","updated_at":"2015-11-24T14:02:50Z","closed_at":"2015-11-23T21:10:51Z","body":"I have this simple code:\r\n```\r\nimport React from 'react';\r\nimport Store from '../stores/Store';\r\nimport Actions from '../actions/Actions';\r\nimport connectToStores from 'alt/utils/connectToStores';\r\n\r\n@connectToStores\r\nclass DefaultInput extends React.Component {\r\n  static getStores() {\r\n    return [ConsoleStore];\r\n  }\r\n  static getPropsFromStores() {\r\n    return ConsoleStore.getState();\r\n  }\r\n\r\n  render({inputId}) {\r\n    return <input id={inputId}/>;\r\n  }\r\n}\r\n\r\n\r\nclass MyInput extends DefaultInput {\r\n  render() {\r\n    return super.render({\r\n      inputId: \"myInput\"\r\n    });\r\n  }\r\n}\r\n```\r\n\r\nAnd when i try to render `MyInput`, it says \"Cannot read property 'inputId' of undefined\".\r\nAny suggestions?"},"comment":{"url":"https://api.github.com/repos/altjs/connect-to-stores/issues/comments/159276306","html_url":"https://github.com/altjs/connect-to-stores/issues/2#issuecomment-159276306","issue_url":"https://api.github.com/repos/altjs/connect-to-stores/issues/2","id":159276306,"user":{"login":"taion","id":3112159,"avatar_url":"https://avatars.githubusercontent.com/u/3112159?v=3","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T14:02:50Z","updated_at":"2015-11-24T14:02:50Z","body":"In general it's an anti-pattern to use component inheritance in React. For the pattern you're trying to follow, the compositional pattern above is the idiomatic way to do it."}}