{"action":"created","issue":{"url":"https://api.github.com/repos/goatslacker/alt/issues/341","labels_url":"https://api.github.com/repos/goatslacker/alt/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/341/comments","events_url":"https://api.github.com/repos/goatslacker/alt/issues/341/events","html_url":"https://github.com/goatslacker/alt/issues/341","id":89665109,"number":341,"title":"connectToStore context","user":{"login":"asaf","id":14259,"avatar_url":"https://avatars.githubusercontent.com/u/14259?v=3","gravatar_id":"","url":"https://api.github.com/users/asaf","html_url":"https://github.com/asaf","followers_url":"https://api.github.com/users/asaf/followers","following_url":"https://api.github.com/users/asaf/following{/other_user}","gists_url":"https://api.github.com/users/asaf/gists{/gist_id}","starred_url":"https://api.github.com/users/asaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaf/subscriptions","organizations_url":"https://api.github.com/users/asaf/orgs","repos_url":"https://api.github.com/users/asaf/repos","events_url":"https://api.github.com/users/asaf/events{/privacy}","received_events_url":"https://api.github.com/users/asaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T21:30:16Z","updated_at":"2015-06-19T22:37:49Z","closed_at":null,"body":"Hey,\r\n\r\nI've seen some new commits related to passing context for the `connecToStore` higher order components but i'm still having a problem accessing the context in my wrapped component,\r\n\r\nIn my top app component, I pass `Alt` instances via:\r\n```js\r\ngetChildContext () {\r\n         return { alt: alt };\r\n}\r\n```\r\n\r\nthen in child components, I can access the correct `Alt` instance via context, ie:\r\n```js\r\ncomponentDidMount() \r\n   this.context.alt.getActions('myActions').niceAction('foo');\r\n }\r\n```\r\nUnfortunately, when using `connectToStore: contextTypes` React won't expose the context, I guess this is because `connectToStore` component has no `contextTypes` defined,\r\n\r\nIf i'm talking nonsense please let me know what would the appropriate approach to propagate context properly :)\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/goatslacker/alt/issues/comments/113662726","html_url":"https://github.com/goatslacker/alt/issues/341#issuecomment-113662726","issue_url":"https://api.github.com/repos/goatslacker/alt/issues/341","id":113662726,"user":{"login":"asaf","id":14259,"avatar_url":"https://avatars.githubusercontent.com/u/14259?v=3","gravatar_id":"","url":"https://api.github.com/users/asaf","html_url":"https://github.com/asaf","followers_url":"https://api.github.com/users/asaf/followers","following_url":"https://api.github.com/users/asaf/following{/other_user}","gists_url":"https://api.github.com/users/asaf/gists{/gist_id}","starred_url":"https://api.github.com/users/asaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaf/subscriptions","organizations_url":"https://api.github.com/users/asaf/orgs","repos_url":"https://api.github.com/users/asaf/repos","events_url":"https://api.github.com/users/asaf/events{/privacy}","received_events_url":"https://api.github.com/users/asaf/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T22:37:49Z","updated_at":"2015-06-19T22:37:49Z","body":"@goatslacker Do we have any other alternatives?, I wonder if there's an elegant way just to propagate the entire context as is, i'm super new to React but this may be related: https://github.com/facebook/react/pull/3615"}}