{"id":985,"date":"2026-02-13T03:26:52","date_gmt":"2026-02-13T03:26:52","guid":{"rendered":"https:\/\/nurlandroid.com\/?p=985"},"modified":"2026-02-13T03:26:54","modified_gmt":"2026-02-13T03:26:54","slug":"%d0%ba%d0%b0%d0%ba-%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d0%b5%d1%82-state-%d0%b8-mutablestate-%d0%bf%d0%be%d0%b4-%d0%ba%d0%b0%d0%bf%d0%be%d1%82%d0%be%d0%bc-%d1%87%d1%82%d0%be-%d1%82%d0%b0%d0%ba%d0%be","status":"publish","type":"post","link":"https:\/\/nurlandroid.com\/?p=985","title":{"rendered":"\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 State \u0438 MutableState \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c? \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Snapshot Mutation Policy?"},"content":{"rendered":"\n<p>\u0412 Compose <code>State&lt;T><\/code> \u2014 \u044d\u0442\u043e <strong>\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/strong>. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u043b\u043e\u0432\u0430 &#171;<strong>\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0439<\/strong>&#171;, &#171;<strong>\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440<\/strong>&#171;, &#171;<strong>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/strong>&#171;) \u041e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b. \u0415\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (<code>SnapshotMutableStateImpl<\/code>, <code>DerivedState<\/code>, \u0438 \u0442.\u043f.), \u043d\u043e \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 API \u0438\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><strong>MutableState&lt;T><\/strong><\/code> \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0451 \u0438 <strong>\u043f\u0438\u0441\u0430\u0442\u044c<\/strong> => \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>\u0438\u043d\u0432\u0430\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u0442<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u0438 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044e<\/li>\n\n\n\n<li><code><strong>State&lt;T><\/strong><\/code> \u043c\u043e\u0436\u043d\u043e <strong>\u0447\u0438\u0442\u0430\u0442\u044c<\/strong> => \u0438 Compose \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e composable \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0435\u0439\u0442\u0430<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Snapshot system: \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c<\/h4>\n\n\n\n<p><strong>Snapshot \u2014 \u043e\u0441\u043d\u043e\u0432\u0430 \u0432\u0441\u0435\u0439 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 Compose<\/strong><\/p>\n\n\n\n<p>Compose \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <strong>\u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u043e\u0432 (Snapshot system)<\/strong>. \u042d\u0442\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 STM (software transactional memory), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 <strong>\u043a\u0442\u043e \u0438 \u0447\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b<\/strong>, \u043a\u0442\u043e \u0438 \u0447\u0442\u043e <strong>\u0438\u0437\u043c\u0435\u043d\u0438\u043b<\/strong> \u0438 <strong>\u0441\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e<\/strong> \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 + \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f.<\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 <code><strong>state.value<\/strong><\/code> \u0432 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u2014 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 <code>Snapshot<\/code> <strong>\u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 composable \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e <code>state<\/code><\/strong>.<\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 <code><strong>state.value<\/strong><\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c snapshot\u2019\u0435<\/li>\n\n\n\n<li>\u043f\u043e\u043c\u0435\u0447\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 <strong>state<\/strong> \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u0439<\/li>\n\n\n\n<li>\u043f\u0440\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u0430 (<code><strong>apply<\/strong><\/code> \u0432 Applier-\u0435) \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0440\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 composable-\u0433\u0440\u0443\u043f\u043f<\/li>\n<\/ul>\n\n\n\n<p><strong><code>MutableState<\/code> \u043a\u0430\u043a \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u0430\u044f \u044f\u0447\u0435\u0439\u043a\u0430 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u0430<\/strong><\/p>\n\n\n\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0438\u043f\u0430 <code><strong><code>MutableState<\/code><\/strong><\/code> \u0432\u043d\u0443\u0442\u0440\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0445\u0440\u0430\u043d\u0438\u0442 <strong>\u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 T<\/strong><\/li>\n\n\n\n<li>\u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 <strong>SnapshotMutationPolicy&lt;T><\/strong><\/li>\n\n\n\n<li>\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u043e\u0433\u0438\u043a\u0443:\n<ul class=\"wp-block-list\">\n<li><code>get()<\/code> \u2014 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c Snapshot<\/li>\n\n\n\n<li><code>set(new)<\/code> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 policy, \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435; \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u0442 state \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u043c \u0432 Snapshot<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u0422\u043e \u0435\u0441\u0442\u044c <code>MutableState<\/code> \u2014 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u0435 + listeners; \u044d\u0442\u043e \u044f\u0447\u0435\u0439\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 <strong>\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 Snapshot\u2019\u043e\u0432<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u041a\u0430\u043a \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0440\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0435\u0439<\/h4>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 <code>@Composable<\/code> \u0447\u0438\u0442\u0430\u0435\u0442 <code><strong>state.value<\/strong><\/code>, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 Compose \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u0442\u043e \u0432 \u0432\u044b\u0437\u043e\u0432, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Composer<\/code> \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u00ab\u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0447\u043b\u0438 \u044d\u0442\u043e\u0442 State\u00bb<\/li>\n\n\n\n<li>Snapshot \u043e\u0442\u043c\u0435\u0447\u0430\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c: <code>groupId -> \u044d\u0442\u043e\u0442 State<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u0442\u044b \u0434\u0435\u043b\u0430\u0435\u0448\u044c <code>state.value = newValue<\/code>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0427\u0435\u0440\u0435\u0437 <code>Snapshot<\/code> \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0443 \u044d\u0442\u043e\u0433\u043e state <strong>\u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/li>\n\n\n\n<li>Snapshot \u043f\u0440\u0438 <code>apply<\/code> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <strong>observer \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/strong><\/li>\n\n\n\n<li>Runtime Compose \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u0445 <code>State<\/code> \u0438 \u0437\u043d\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 <code>group<\/code> \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u043d\u0438\u0445<\/li>\n\n\n\n<li>\u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 <strong>recomposition<\/strong> \u044d\u0442\u0438\u0445 \u0433\u0440\u0443\u043f\u043f<\/li>\n<\/ol>\n\n\n\n<p>\u0418 \u0442\u0443\u0442 \u0432 \u0438\u0433\u0440\u0443 \u0432\u0445\u043e\u0434\u0438\u0442 <strong>SnapshotMutationPolicy<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <code>SnapshotMutationPolicy<\/code><\/h4>\n\n\n\n<p><code>SnapshotMutationPolicy<\/code> \u044d\u0442\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 (\u043d\u0430\u0431\u043e\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432)<strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 state <\/strong>&#171;<strong>\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u044b\u043c<\/strong>&#171;. \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ninterface SnapshotMutationPolicy&amp;lt;T&gt; {\n    fun equivalent(a: T, b: T): Boolean\n}\n<\/pre><\/div>\n\n\n<p>\u0418 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>state.value = x<\/strong>, \u0442\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nif (!policy.equivalent(oldValue, newValue)) {\n    \/\/ \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c =&gt; \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c state \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u0439\n}\n<\/pre><\/div>\n\n\n<p>\u0422.\u0435. <code>SnapshotMutationPolicy<\/code><strong> \u0440\u0435\u0448\u0430\u0435\u0442:<\/strong> \u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c <code>old<\/code>-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 <code>new<\/code>-\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u044b\u043c\u0438, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u2014 <strong>\u043d\u0443\u0436\u043d\u043e \u043b\u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0438\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044e<\/strong> \u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0435\u0451 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c.<\/p>\n\n\n\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u043e\u0432 <code>SnapshotMutationPolicy<\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><strong>structuralEqualityPolicy()<\/strong><\/code> &#8212; \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 &#171;<code>==\"<\/code> (\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u043e\u0435 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e)<\/li>\n\n\n\n<li><strong>referentialEqualityPolicy()<\/strong> &#8212; \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0438\u0434\u0451\u0442 \u043f\u043e <strong>\u0441\u0441\u044b\u043b\u043a\u0435<\/strong>(\u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u043a\u0443\u0447\u0435) <code>\"===<\/code>&#171;. \u041f\u043e\u043b\u0435\u0437\u043d\u043e \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 <strong>\u0441\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442<\/strong>, \u0430 \u043d\u0435 \u0435\u0433\u043e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f <strong>\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/strong>, \u0433\u0434\u0435 <code><strong>equals<\/strong><\/code> \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0435\u043c, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e<\/li>\n\n\n\n<li>neverEqualPolicy() &#8212; \u043b\u044e\u0431\u043e\u0439 <code>\u043d\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445<\/code> \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c. \u0422\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0440\u0430\u0432\u043d\u044b \u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u0438-\u0438\u043b\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 Compose State&lt;T> \u2014 \u044d\u0442\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u043b\u043e\u0432\u0430 &#171;\u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0439&#171;, &#171;\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440&#171;, &#171;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f&#171;) \u041e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b. \u0415\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (SnapshotMutableStateImpl, DerivedState, \u0438 \u0442.\u043f.), \u043d\u043e \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 API \u0438\u0434\u0435\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f: Snapshot system: \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c Snapshot \u2014 \u043e\u0441\u043d\u043e\u0432\u0430 \u0432\u0441\u0435\u0439 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 Compose Compose \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u043e\u0432 (Snapshot system). \u042d\u0442\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 STM (software [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,32],"tags":[],"class_list":["post-985","post","type-post","status-publish","format-standard","hentry","category-android","category-compose"],"_links":{"self":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts\/985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=985"}],"version-history":[{"count":1,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts\/985\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts\/985\/revisions\/986"}],"wp:attachment":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}