{"action":"created","issue":{"url":"https://api.github.com/repos/zetachang/react.rb/issues/78","repository_url":"https://api.github.com/repos/zetachang/react.rb","labels_url":"https://api.github.com/repos/zetachang/react.rb/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/zetachang/react.rb/issues/78/comments","events_url":"https://api.github.com/repos/zetachang/react.rb/issues/78/events","html_url":"https://github.com/zetachang/react.rb/issues/78","id":116416230,"number":78,"title":"For backwards compatibility make sure to always update react state when state changes","user":{"login":"catmando","id":63146,"avatar_url":"https://avatars.githubusercontent.com/u/63146?v=3","gravatar_id":"","url":"https://api.github.com/users/catmando","html_url":"https://github.com/catmando","followers_url":"https://api.github.com/users/catmando/followers","following_url":"https://api.github.com/users/catmando/following{/other_user}","gists_url":"https://api.github.com/users/catmando/gists{/gist_id}","starred_url":"https://api.github.com/users/catmando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catmando/subscriptions","organizations_url":"https://api.github.com/users/catmando/orgs","repos_url":"https://api.github.com/users/catmando/repos","events_url":"https://api.github.com/users/catmando/events{/privacy}","received_events_url":"https://api.github.com/users/catmando/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-11T20:36:50Z","updated_at":"2016-06-10T20:07:51Z","closed_at":"2015-11-11T20:43:00Z","body":"Huh?  \r\n\r\nFor optimization the React::State module does not update the underlying react state hash unless somebody is looking at the particular state variable.\r\n\r\nAfter all if nobody is looking than why update it?  (Very Zen!)\r\n\r\nBut to keep backwards compatibility, and perhaps in case for some reason you need to actually look at the react state hash, we will update it.   We can do this and avoid the re-render because we also have a \"secret\" state variable that only changes when observable state changes.  The default needs_update? method checks this value. By updating the underlying the state WITHOUT updating this we can avoid unnecessary re-renders, but keep the underlying react state consistent."},"comment":{"url":"https://api.github.com/repos/zetachang/react.rb/issues/comments/225282789","html_url":"https://github.com/zetachang/react.rb/issues/78#issuecomment-225282789","issue_url":"https://api.github.com/repos/zetachang/react.rb/issues/78","id":225282789,"user":{"login":"sollycatprint","id":8051004,"avatar_url":"https://avatars.githubusercontent.com/u/8051004?v=3","gravatar_id":"","url":"https://api.github.com/users/sollycatprint","html_url":"https://github.com/sollycatprint","followers_url":"https://api.github.com/users/sollycatprint/followers","following_url":"https://api.github.com/users/sollycatprint/following{/other_user}","gists_url":"https://api.github.com/users/sollycatprint/gists{/gist_id}","starred_url":"https://api.github.com/users/sollycatprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sollycatprint/subscriptions","organizations_url":"https://api.github.com/users/sollycatprint/orgs","repos_url":"https://api.github.com/users/sollycatprint/repos","events_url":"https://api.github.com/users/sollycatprint/events{/privacy}","received_events_url":"https://api.github.com/users/sollycatprint/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T20:07:51Z","updated_at":"2016-06-10T20:07:51Z","body":"This issue was moved to reactrb/reactrb#78"}}
{"actor":{"display_login":"sollycatprint"}}