{"action":"created","issue":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/615","repository_url":"https://api.github.com/repos/ReactTraining/react-router","labels_url":"https://api.github.com/repos/ReactTraining/react-router/issues/615/labels{/name}","comments_url":"https://api.github.com/repos/ReactTraining/react-router/issues/615/comments","events_url":"https://api.github.com/repos/ReactTraining/react-router/issues/615/events","html_url":"https://github.com/ReactTraining/react-router/issues/615","id":52120148,"number":615,"title":"Props to handlers on Route","user":{"login":"torarnek","id":283192,"avatar_url":"https://avatars.githubusercontent.com/u/283192?v=3","gravatar_id":"","url":"https://api.github.com/users/torarnek","html_url":"https://github.com/torarnek","followers_url":"https://api.github.com/users/torarnek/followers","following_url":"https://api.github.com/users/torarnek/following{/other_user}","gists_url":"https://api.github.com/users/torarnek/gists{/gist_id}","starred_url":"https://api.github.com/users/torarnek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torarnek/subscriptions","organizations_url":"https://api.github.com/users/torarnek/orgs","repos_url":"https://api.github.com/users/torarnek/repos","events_url":"https://api.github.com/users/torarnek/events{/privacy}","received_events_url":"https://api.github.com/users/torarnek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2014-12-16T14:43:44Z","updated_at":"2016-09-20T21:36:26Z","closed_at":"2014-12-16T15:51:07Z","body":"I think it should be simple to add props to handlers. It is a very common scenario to initialize the react components with some starting data as props.\r\n\r\nThis was changed from 0.10-0.11, and think the suggested workaround with a function closing over the handler is not very good.\r\n\r\nWhat about that Router.Route takes a parameter \"props\" object that is passed to the handler?"},"comment":{"url":"https://api.github.com/repos/ReactTraining/react-router/issues/comments/248442165","html_url":"https://github.com/ReactTraining/react-router/issues/615#issuecomment-248442165","issue_url":"https://api.github.com/repos/ReactTraining/react-router/issues/615","id":248442165,"user":{"login":"timdorr","id":17882,"avatar_url":"https://avatars.githubusercontent.com/u/17882?v=3","gravatar_id":"","url":"https://api.github.com/users/timdorr","html_url":"https://github.com/timdorr","followers_url":"https://api.github.com/users/timdorr/followers","following_url":"https://api.github.com/users/timdorr/following{/other_user}","gists_url":"https://api.github.com/users/timdorr/gists{/gist_id}","starred_url":"https://api.github.com/users/timdorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdorr/subscriptions","organizations_url":"https://api.github.com/users/timdorr/orgs","repos_url":"https://api.github.com/users/timdorr/repos","events_url":"https://api.github.com/users/timdorr/events{/privacy}","received_events_url":"https://api.github.com/users/timdorr/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T21:36:26Z","updated_at":"2016-09-20T21:36:26Z","body":"Because [Route doesn't render anything](https://github.com/ReactTraining/react-router/blob/master/modules/Route.js#L33-L38), so it can't include any children. The Router only reads its children as a particular kind of configuration, not as plain React elements for rendering. \r\n\r\nThis kind of thing is fixed in 4.0, where `<Match>` is just a plain React component and does render."}}
{"actor":{"display_login":"timdorr"}}