{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/1546","labels_url":"https://api.github.com/repos/rackt/react-router/issues/1546/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1546/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/1546/events","html_url":"https://github.com/rackt/react-router/issues/1546","id":95138543,"number":1546,"title":"setState doesn't raise createElement","user":{"login":"omerts","id":4996164,"avatar_url":"https://avatars.githubusercontent.com/u/4996164?v=3","gravatar_id":"","url":"https://api.github.com/users/omerts","html_url":"https://github.com/omerts","followers_url":"https://api.github.com/users/omerts/followers","following_url":"https://api.github.com/users/omerts/following{/other_user}","gists_url":"https://api.github.com/users/omerts/gists{/gist_id}","starred_url":"https://api.github.com/users/omerts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omerts/subscriptions","organizations_url":"https://api.github.com/users/omerts/orgs","repos_url":"https://api.github.com/users/omerts/repos","events_url":"https://api.github.com/users/omerts/events{/privacy}","received_events_url":"https://api.github.com/users/omerts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-15T08:52:54Z","updated_at":"2015-07-26T08:44:48Z","closed_at":null,"body":"I have a route handler called App, which has sub-routes. \r\nMy render method looks like  this:\r\n```javascript\r\nrender() {  \r\n    return (\r\n      <AppCanvas predefinedLayout={1}>\r\n        {this.props.children}\r\n      </AppCanvas>\r\n    );\r\n  }\r\n```\r\nI am injecting props to children through the Router's createElement method. \r\nI don't want to use React.cloneElement bcs imho it is an antipattern, and is not the way to transfer props to children.\r\nIf I call setState from inside my App, createElement isn't raised. "},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/124957985","html_url":"https://github.com/rackt/react-router/issues/1546#issuecomment-124957985","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1546","id":124957985,"user":{"login":"batazor","id":1643797,"avatar_url":"https://avatars.githubusercontent.com/u/1643797?v=3","gravatar_id":"","url":"https://api.github.com/users/batazor","html_url":"https://github.com/batazor","followers_url":"https://api.github.com/users/batazor/followers","following_url":"https://api.github.com/users/batazor/following{/other_user}","gists_url":"https://api.github.com/users/batazor/gists{/gist_id}","starred_url":"https://api.github.com/users/batazor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batazor/subscriptions","organizations_url":"https://api.github.com/users/batazor/orgs","repos_url":"https://api.github.com/users/batazor/repos","events_url":"https://api.github.com/users/batazor/events{/privacy}","received_events_url":"https://api.github.com/users/batazor/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T08:44:48Z","updated_at":"2015-07-26T08:44:48Z","body":":+1:\r\n"}}