{"action":"created","issue":{"url":"https://api.github.com/repos/purescript-contrib/purescript-react/issues/39","labels_url":"https://api.github.com/repos/purescript-contrib/purescript-react/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/purescript-contrib/purescript-react/issues/39/comments","events_url":"https://api.github.com/repos/purescript-contrib/purescript-react/issues/39/events","html_url":"https://github.com/purescript-contrib/purescript-react/pull/39","id":103866630,"number":39,"title":"Topic/lifecycle methods","user":{"login":"ethul","id":350411,"avatar_url":"https://avatars.githubusercontent.com/u/350411?v=3","gravatar_id":"","url":"https://api.github.com/users/ethul","html_url":"https://github.com/ethul","followers_url":"https://api.github.com/users/ethul/followers","following_url":"https://api.github.com/users/ethul/following{/other_user}","gists_url":"https://api.github.com/users/ethul/gists{/gist_id}","starred_url":"https://api.github.com/users/ethul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethul/subscriptions","organizations_url":"https://api.github.com/users/ethul/orgs","repos_url":"https://api.github.com/users/ethul/repos","events_url":"https://api.github.com/users/ethul/events{/privacy}","received_events_url":"https://api.github.com/users/ethul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-29T17:46:34Z","updated_at":"2015-08-31T18:27:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/purescript-contrib/purescript-react/pulls/39","html_url":"https://github.com/purescript-contrib/purescript-react/pull/39","diff_url":"https://github.com/purescript-contrib/purescript-react/pull/39.diff","patch_url":"https://github.com/purescript-contrib/purescript-react/pull/39.patch"},"body":"Some of the [lifecycle methods](https://facebook.github.io/react/docs/component-specs.html#lifecycle-methods) did not pass along the arguments from React. I've added these arguments. I realize this is a breaking change and I am definitely open to discussion. But I thought they might be handy."},"comment":{"url":"https://api.github.com/repos/purescript-contrib/purescript-react/issues/comments/136454332","html_url":"https://github.com/purescript-contrib/purescript-react/pull/39#issuecomment-136454332","issue_url":"https://api.github.com/repos/purescript-contrib/purescript-react/issues/39","id":136454332,"user":{"login":"ethul","id":350411,"avatar_url":"https://avatars.githubusercontent.com/u/350411?v=3","gravatar_id":"","url":"https://api.github.com/users/ethul","html_url":"https://github.com/ethul","followers_url":"https://api.github.com/users/ethul/followers","following_url":"https://api.github.com/users/ethul/following{/other_user}","gists_url":"https://api.github.com/users/ethul/gists{/gist_id}","starred_url":"https://api.github.com/users/ethul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethul/subscriptions","organizations_url":"https://api.github.com/users/ethul/orgs","repos_url":"https://api.github.com/users/ethul/repos","events_url":"https://api.github.com/users/ethul/events{/privacy}","received_events_url":"https://api.github.com/users/ethul/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T18:27:15Z","updated_at":"2015-08-31T18:27:15Z","body":"I think using `getState` and `getProps` would give a different result in these lifecycle methods.\r\n\r\nFor example in `componentWillReceiveProps` if you did `getProps`, I think this would yield the current props. But the props passed in as a param would be the next props.\r\n\r\nSame goes for the others. For instance, check out the code example for [shouldComponentUpdate](https://facebook.github.io/react/docs/component-specs.html#updating-shouldcomponentupdate)."}}