{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/5591","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/5591/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/5591/comments","events_url":"https://api.github.com/repos/facebook/react/issues/5591/events","html_url":"https://github.com/facebook/react/issues/5591","id":120197638,"number":5591,"title":"Calling setState in render causes infinite loop","user":{"login":"mikkoh","id":496903,"avatar_url":"https://avatars2.githubusercontent.com/u/496903?v=4","gravatar_id":"","url":"https://api.github.com/users/mikkoh","html_url":"https://github.com/mikkoh","followers_url":"https://api.github.com/users/mikkoh/followers","following_url":"https://api.github.com/users/mikkoh/following{/other_user}","gists_url":"https://api.github.com/users/mikkoh/gists{/gist_id}","starred_url":"https://api.github.com/users/mikkoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikkoh/subscriptions","organizations_url":"https://api.github.com/users/mikkoh/orgs","repos_url":"https://api.github.com/users/mikkoh/repos","events_url":"https://api.github.com/users/mikkoh/events{/privacy}","received_events_url":"https://api.github.com/users/mikkoh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2015-12-03T15:33:09Z","updated_at":"2018-03-30T00:58:51Z","closed_at":"2015-12-22T18:49:17Z","author_association":"NONE","body":"This may seem really silly to do to call `setState` in render. However it's possible for this to happen if a component has a callback which is being called immediately during render and in your callback handler you call `setState`.\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/377415752","html_url":"https://github.com/facebook/react/issues/5591#issuecomment-377415752","issue_url":"https://api.github.com/repos/facebook/react/issues/5591","id":377415752,"user":{"login":"sunil-sandhu","id":19417441,"avatar_url":"https://avatars3.githubusercontent.com/u/19417441?v=4","gravatar_id":"","url":"https://api.github.com/users/sunil-sandhu","html_url":"https://github.com/sunil-sandhu","followers_url":"https://api.github.com/users/sunil-sandhu/followers","following_url":"https://api.github.com/users/sunil-sandhu/following{/other_user}","gists_url":"https://api.github.com/users/sunil-sandhu/gists{/gist_id}","starred_url":"https://api.github.com/users/sunil-sandhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunil-sandhu/subscriptions","organizations_url":"https://api.github.com/users/sunil-sandhu/orgs","repos_url":"https://api.github.com/users/sunil-sandhu/repos","events_url":"https://api.github.com/users/sunil-sandhu/events{/privacy}","received_events_url":"https://api.github.com/users/sunil-sandhu/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T00:58:51Z","updated_at":"2018-03-30T00:58:51Z","author_association":"NONE","body":"So so late to the party here but @sophiebits's comment about componentDidMount has just brought an end to 3 hours of debugging - thank you!"}}
{"actor":{"display_login":"sunil-sandhu"}}