<divclass="content sourceset-depenent-content"data-active=""data-togglable=":micro_utils.dokka:dokkaHtml/androidMain"><divclass="symbol monospace"><spanclass="token keyword">open </span><spanclass="token keyword">suspend override </span><spanclass="token keyword">fun </span><ahref="update-chain.html"><spanclass="token function">updateChain</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">currentState<spanclass="token operator">: </span><ahref="index.html">T</a><spanclass="token punctuation">, </span></span><spanclass="parameter ">newState<spanclass="token operator">: </span><ahref="index.html">T</a></span></span><spanclass="token punctuation">)</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Update chain with current state equal to <ahref="update-chain.html">currentState</a> with <ahref="update-chain.html">newState</a>. Behaviour of this update preforming in cases when <ahref="update-chain.html">currentState</a> does not exist in <ahref="../[android]-states-manager/index.html">StatesManager</a> must be declared inside of realization of <ahref="../[android]-states-manager/update.html">StatesManager.update</a> function</p></div></div>