{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1897","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1897/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1897/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1897/events","html_url":"https://github.com/rackt/react-router/issues/1897","id":106149783,"number":1897,"title":"how to inject context to a Route Handler?","user":{"login":"nikhedonia","id":4670055,"avatar_url":"https://avatars.githubusercontent.com/u/4670055?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhedonia","html_url":"https://github.com/nikhedonia","followers_url":"https://api.github.com/users/nikhedonia/followers","following_url":"https://api.github.com/users/nikhedonia/following{/other_user}","gists_url":"https://api.github.com/users/nikhedonia/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhedonia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhedonia/subscriptions","organizations_url":"https://api.github.com/users/nikhedonia/orgs","repos_url":"https://api.github.com/users/nikhedonia/repos","events_url":"https://api.github.com/users/nikhedonia/events{/privacy}","received_events_url":"https://api.github.com/users/nikhedonia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rackt/react-router/labels/question","name":"question","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-12T11:35:56Z","updated_at":"2015-09-12T23:12:38Z","closed_at":"2015-09-12T16:43:43Z","body":"I'd like to inject additional context to a Route-Handler, but a wrapped Handler seems to only react once on historyLocationChange. Can someone explain why the following wrappers produces this behaviour?\r\n\r\n```js\r\n    Router.run(routes, Router.HistoryLocation, (Handler,State)=>{\r\n      class Wrapper1 extends Component{\r\n        //static childContextTypes = {...}\r\n        //getChildContext(){...}\r\n        render(){\r\n          return <Handler {...State} />;\r\n        }\r\n      }\r\n      React.render( <Wrapper1/> , document.body );\r\n\r\n     //or\r\n\r\n      class Wrapper2 extends Handler{\r\n        //static childContextTypes = {...}\r\n        //getChildContext(){...}\r\n      }\r\n      React.render( <Wrapper2 {...State} /> , document.body );\r\n    });\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/139828266","html_url":"https://github.com/rackt/react-router/issues/1897#issuecomment-139828266","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1897","id":139828266,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2015-09-12T23:12:38Z","updated_at":"2015-09-12T23:12:38Z","body":"I can't speak for @ryanflorence but it would help if you expanded the question to include:\r\n\r\n1. What you've tried (full runnable example)\r\n2. Expected behavior\r\n3. Actual behavior"}}