{"action":"created","issue":{"url":"https://api.github.com/repos/yandex-ui/noscript-react/issues/26","repository_url":"https://api.github.com/repos/yandex-ui/noscript-react","labels_url":"https://api.github.com/repos/yandex-ui/noscript-react/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/yandex-ui/noscript-react/issues/26/comments","events_url":"https://api.github.com/repos/yandex-ui/noscript-react/issues/26/events","html_url":"https://github.com/yandex-ui/noscript-react/issues/26","id":157625873,"number":26,"title":"Работа с setState","user":{"login":"vitkarpov","id":3001791,"avatar_url":"https://avatars.githubusercontent.com/u/3001791?v=3","gravatar_id":"","url":"https://api.github.com/users/vitkarpov","html_url":"https://github.com/vitkarpov","followers_url":"https://api.github.com/users/vitkarpov/followers","following_url":"https://api.github.com/users/vitkarpov/following{/other_user}","gists_url":"https://api.github.com/users/vitkarpov/gists{/gist_id}","starred_url":"https://api.github.com/users/vitkarpov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitkarpov/subscriptions","organizations_url":"https://api.github.com/users/vitkarpov/orgs","repos_url":"https://api.github.com/users/vitkarpov/repos","events_url":"https://api.github.com/users/vitkarpov/events{/privacy}","received_events_url":"https://api.github.com/users/vitkarpov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yandex-ui/noscript-react/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-31T09:19:20Z","updated_at":"2016-05-31T17:31:37Z","closed_at":null,"body":"У реактивной вьюшки определен shouldComponentUpdate , который смотрит на флажок  _needBeUpdated во вьюшке.\r\n\r\nЭтот флаг вычисляется при каждом апдейте и взводится при одном из следующих условий:\r\n- view не валидно\r\n- есть дочерние вью, которые не валидны\r\n- view не имеет компонента\r\n\r\n**Таким образом, если вьюшка валидна, то setState не перерисует компонент.**\r\n\r\nЭто кажется не слишком очевидным — одно дело, когда мы вызываем ноускриптовый апдейт и здесь реактивная вьюшка подчиняется обычным правилам, а другое дело, когда меняет локальный стейт реакт-компонента."},"comment":{"url":"https://api.github.com/repos/yandex-ui/noscript-react/issues/comments/222761029","html_url":"https://github.com/yandex-ui/noscript-react/issues/26#issuecomment-222761029","issue_url":"https://api.github.com/repos/yandex-ui/noscript-react/issues/26","id":222761029,"user":{"login":"Rebulus","id":587265,"avatar_url":"https://avatars.githubusercontent.com/u/587265?v=3","gravatar_id":"","url":"https://api.github.com/users/Rebulus","html_url":"https://github.com/Rebulus","followers_url":"https://api.github.com/users/Rebulus/followers","following_url":"https://api.github.com/users/Rebulus/following{/other_user}","gists_url":"https://api.github.com/users/Rebulus/gists{/gist_id}","starred_url":"https://api.github.com/users/Rebulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rebulus/subscriptions","organizations_url":"https://api.github.com/users/Rebulus/orgs","repos_url":"https://api.github.com/users/Rebulus/repos","events_url":"https://api.github.com/users/Rebulus/events{/privacy}","received_events_url":"https://api.github.com/users/Rebulus/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T17:31:37Z","updated_at":"2016-05-31T17:31:37Z","body":"В принципе, концепт с `render` возможен, но захочется ли всё сейчас переписать. Я бы предложил (как верно заметил @i2r) смотреть на component секцию как на процесс описания компонента, который не может влиять на свои дочерние компоненты, которые были созданы с помощью ns. Стейт, вроде как сохраняется, просто дочерние ns.ViewReact перерисовываться не должны при его изменении."}}
{"actor":{"display_login":"Rebulus"}}