{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4218","labels_url":"https://api.github.com/repos/facebook/react/issues/4218/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4218/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4218/events","html_url":"https://github.com/facebook/react/issues/4218","id":90837787,"number":4218,"title":"0.14.0-alpha1 children with parent-based context changes don't update","user":{"login":"ryanflorence","id":100200,"avatar_url":"https://avatars.githubusercontent.com/u/100200?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflorence","html_url":"https://github.com/ryanflorence","followers_url":"https://api.github.com/users/ryanflorence/followers","following_url":"https://api.github.com/users/ryanflorence/following{/other_user}","gists_url":"https://api.github.com/users/ryanflorence/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflorence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflorence/subscriptions","organizations_url":"https://api.github.com/users/ryanflorence/orgs","repos_url":"https://api.github.com/users/ryanflorence/repos","events_url":"https://api.github.com/users/ryanflorence/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflorence/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-25T03:07:48Z","updated_at":"2015-08-21T21:58:26Z","closed_at":null,"body":"```js\r\nvar Top = React.createClass({\r\n  childContextTypes: {\r\n    now: React.PropTypes.any\r\n  },\r\n\r\n  getChildContext() {\r\n    return {\r\n      now: this.state.now\r\n    };\r\n  },\r\n\r\n  getInitialState() {\r\n    return {\r\n      now: Date.now()\r\n    };\r\n  },\r\n\r\n  componentDidMount() {\r\n    setInterval(() => {\r\n      this.setState({\r\n        now: Date.now()\r\n      });\r\n    }, 500);\r\n  },\r\n\r\n  render() {\r\n    return (\r\n      <div>\r\n        <h1>{this.state.now}</h1>\r\n        {React.cloneElement(this.props.children)}\r\n      </div>\r\n    );\r\n  }\r\n});\r\n\r\nvar Middle = React.createClass({\r\n  render() {\r\n    return React.Children.only(this.props.children);\r\n  }\r\n});\r\n\r\nvar Child = React.createClass({\r\n\r\n  contextTypes: {\r\n    now: React.PropTypes.any\r\n  },\r\n\r\n  shouldComponentUpdate() {\r\n    return true;\r\n  },\r\n\r\n  render() {\r\n    return <h2>{this.context.now}</h2>;\r\n  }\r\n\r\n});\r\n\r\n// remove the bailout in the reconciler and this works\r\nReact.render(<Top><Child/></Top>, document.getElementById('example'));\r\n\r\n// but this still doesn't\r\nReact.render(<Top><Middle><Child/></Middle></Top>, document.getElementById('example'));\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/133575644","html_url":"https://github.com/facebook/react/issues/4218#issuecomment-133575644","issue_url":"https://api.github.com/repos/facebook/react/issues/4218","id":133575644,"user":{"login":"taion","id":3112159,"avatar_url":"https://avatars.githubusercontent.com/u/3112159?v=3","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T21:58:26Z","updated_at":"2015-08-21T21:58:26Z","body":"Oops - didn't realize that some of those PRs above were after beta3. This indeed works as expected against the current commit on master. Thank you!"}}