{"action":"created","issue":{"url":"https://api.github.com/repos/javierbyte/react-blur/issues/5","labels_url":"https://api.github.com/repos/javierbyte/react-blur/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/javierbyte/react-blur/issues/5/comments","events_url":"https://api.github.com/repos/javierbyte/react-blur/issues/5/events","html_url":"https://github.com/javierbyte/react-blur/issues/5","id":92834948,"number":5,"title":"componentWillReceiveProps should not re-blur image unless props changed","user":{"login":"mull","id":646665,"avatar_url":"https://avatars.githubusercontent.com/u/646665?v=3","gravatar_id":"","url":"https://api.github.com/users/mull","html_url":"https://github.com/mull","followers_url":"https://api.github.com/users/mull/followers","following_url":"https://api.github.com/users/mull/following{/other_user}","gists_url":"https://api.github.com/users/mull/gists{/gist_id}","starred_url":"https://api.github.com/users/mull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mull/subscriptions","organizations_url":"https://api.github.com/users/mull/orgs","repos_url":"https://api.github.com/users/mull/repos","events_url":"https://api.github.com/users/mull/events{/privacy}","received_events_url":"https://api.github.com/users/mull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T09:33:09Z","updated_at":"2015-07-03T16:02:29Z","closed_at":null,"body":"Hi javierbyte,\r\n\r\n```js\r\n    componentWillReceiveProps(nextProps) {\r\n        stackBlurImage(this.img, this.canvas, nextProps.blurRadius, this.width, this.height);\r\n    },\r\n```\r\n\r\nThis is quite a waste, as you don't check if the props actually change. Perhaps this should be done in `componentWillUpdate` - or just check if the props changed?"},"comment":{"url":"https://api.github.com/repos/javierbyte/react-blur/issues/comments/118381642","html_url":"https://github.com/javierbyte/react-blur/issues/5#issuecomment-118381642","issue_url":"https://api.github.com/repos/javierbyte/react-blur/issues/5","id":118381642,"user":{"login":"javierbyte","id":2009676,"avatar_url":"https://avatars.githubusercontent.com/u/2009676?v=3","gravatar_id":"","url":"https://api.github.com/users/javierbyte","html_url":"https://github.com/javierbyte","followers_url":"https://api.github.com/users/javierbyte/followers","following_url":"https://api.github.com/users/javierbyte/following{/other_user}","gists_url":"https://api.github.com/users/javierbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/javierbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javierbyte/subscriptions","organizations_url":"https://api.github.com/users/javierbyte/orgs","repos_url":"https://api.github.com/users/javierbyte/repos","events_url":"https://api.github.com/users/javierbyte/events{/privacy}","received_events_url":"https://api.github.com/users/javierbyte/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T16:02:29Z","updated_at":"2015-07-03T16:02:29Z","body":"You are right!\r\nI will fix this tonight.\r\nThank you!"}}