{"action":"created","issue":{"url":"https://api.github.com/repos/mobxjs/mobx-react/issues/70","repository_url":"https://api.github.com/repos/mobxjs/mobx-react","labels_url":"https://api.github.com/repos/mobxjs/mobx-react/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/mobxjs/mobx-react/issues/70/comments","events_url":"https://api.github.com/repos/mobxjs/mobx-react/issues/70/events","html_url":"https://github.com/mobxjs/mobx-react/issues/70","id":162014695,"number":70,"title":"Prop validation throws a warning when used on a decorated component expecting store","user":{"login":"dmi-dmi-dmi","id":19564404,"avatar_url":"https://avatars.githubusercontent.com/u/19564404?v=3","gravatar_id":"","url":"https://api.github.com/users/dmi-dmi-dmi","html_url":"https://github.com/dmi-dmi-dmi","followers_url":"https://api.github.com/users/dmi-dmi-dmi/followers","following_url":"https://api.github.com/users/dmi-dmi-dmi/following{/other_user}","gists_url":"https://api.github.com/users/dmi-dmi-dmi/gists{/gist_id}","starred_url":"https://api.github.com/users/dmi-dmi-dmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmi-dmi-dmi/subscriptions","organizations_url":"https://api.github.com/users/dmi-dmi-dmi/orgs","repos_url":"https://api.github.com/users/dmi-dmi-dmi/repos","events_url":"https://api.github.com/users/dmi-dmi-dmi/events{/privacy}","received_events_url":"https://api.github.com/users/dmi-dmi-dmi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-23T20:23:41Z","updated_at":"2016-07-11T20:39:02Z","closed_at":null,"body":"When I run the code below I get `Warning: Failed propType: Required prop 'store' was not specified in 'MobXStoreInjector'. Check the render method of 'Root'` warning in the browser console.\r\n\r\n```\r\nimport React, { Component, PropTypes } from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Provider, observer } from 'mobx-react';\r\n\r\n\r\nconst store = {};\r\n\r\n@observer(['store']) class MyComponent extends Component {\r\n\r\n  render() {\r\n    return <div>abc</div>;\r\n  }\r\n\r\n}\r\n\r\nMyComponent.propTypes = {\r\n  store: PropTypes.object.isRequired,\r\n};\r\n\r\n\r\nfunction Root({ store }) {\r\n  return (\r\n    <Provider store={store}>\r\n      <MyComponent />\r\n    </Provider>\r\n  );\r\n}\r\n\r\nReactDOM.render(\r\n    <Root store={store} />,\r\n  document.getElementById('reactApp'));\r\n```"},"comment":{"url":"https://api.github.com/repos/mobxjs/mobx-react/issues/comments/231857387","html_url":"https://github.com/mobxjs/mobx-react/issues/70#issuecomment-231857387","issue_url":"https://api.github.com/repos/mobxjs/mobx-react/issues/70","id":231857387,"user":{"login":"mweststrate","id":1820292,"avatar_url":"https://avatars.githubusercontent.com/u/1820292?v=3","gravatar_id":"","url":"https://api.github.com/users/mweststrate","html_url":"https://github.com/mweststrate","followers_url":"https://api.github.com/users/mweststrate/followers","following_url":"https://api.github.com/users/mweststrate/following{/other_user}","gists_url":"https://api.github.com/users/mweststrate/gists{/gist_id}","starred_url":"https://api.github.com/users/mweststrate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweststrate/subscriptions","organizations_url":"https://api.github.com/users/mweststrate/orgs","repos_url":"https://api.github.com/users/mweststrate/repos","events_url":"https://api.github.com/users/mweststrate/events{/privacy}","received_events_url":"https://api.github.com/users/mweststrate/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T20:39:02Z","updated_at":"2016-07-11T20:39:02Z","body":"Released as 3.5.0. Feel free to re-open if anything is unclear"}}
{"actor":{"display_login":"mweststrate"}}