{"action":"created","issue":{"url":"https://api.github.com/repos/borisyankov/react-sparklines/issues/12","labels_url":"https://api.github.com/repos/borisyankov/react-sparklines/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/borisyankov/react-sparklines/issues/12/comments","events_url":"https://api.github.com/repos/borisyankov/react-sparklines/issues/12/events","html_url":"https://github.com/borisyankov/react-sparklines/issues/12","id":107892720,"number":12,"title":"shouldComponentUpdate throws error","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-23T10:38:46Z","updated_at":"2015-09-23T14:19:23Z","closed_at":"2015-09-23T14:08:23Z","body":"It seems these lines https://github.com/borisyankov/react-sparklines/blob/master/src/Sparklines.js#L32-L34 should compare `nextProps` with `this.props`, but now it is trying to compare with `nextState` which is `null` and this throws an error `TypeError: Cannot read property 'width' of null`"},"comment":{"url":"https://api.github.com/repos/borisyankov/react-sparklines/issues/comments/142616119","html_url":"https://github.com/borisyankov/react-sparklines/issues/12#issuecomment-142616119","issue_url":"https://api.github.com/repos/borisyankov/react-sparklines/issues/12","id":142616119,"user":{"login":"borisyankov","id":867242,"avatar_url":"https://avatars.githubusercontent.com/u/867242?v=3","gravatar_id":"","url":"https://api.github.com/users/borisyankov","html_url":"https://github.com/borisyankov","followers_url":"https://api.github.com/users/borisyankov/followers","following_url":"https://api.github.com/users/borisyankov/following{/other_user}","gists_url":"https://api.github.com/users/borisyankov/gists{/gist_id}","starred_url":"https://api.github.com/users/borisyankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisyankov/subscriptions","organizations_url":"https://api.github.com/users/borisyankov/orgs","repos_url":"https://api.github.com/users/borisyankov/repos","events_url":"https://api.github.com/users/borisyankov/events{/privacy}","received_events_url":"https://api.github.com/users/borisyankov/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T14:19:23Z","updated_at":"2015-09-23T14:19:23Z","body":"Pushed as 1.1.2 ;)"}}