• <bdo id='LvKEg'></bdo><ul id='LvKEg'></ul>
      <tfoot id='LvKEg'></tfoot>
    1. <legend id='LvKEg'><style id='LvKEg'><dir id='LvKEg'><q id='LvKEg'></q></dir></style></legend>

        <i id='LvKEg'><tr id='LvKEg'><dt id='LvKEg'><q id='LvKEg'><span id='LvKEg'><b id='LvKEg'><form id='LvKEg'><ins id='LvKEg'></ins><ul id='LvKEg'></ul><sub id='LvKEg'></sub></form><legend id='LvKEg'></legend><bdo id='LvKEg'><pre id='LvKEg'><center id='LvKEg'></center></pre></bdo></b><th id='LvKEg'></th></span></q></dt></tr></i><div id='LvKEg'><tfoot id='LvKEg'></tfoot><dl id='LvKEg'><fieldset id='LvKEg'></fieldset></dl></div>

        <small id='LvKEg'></small><noframes id='LvKEg'>

        什么是前端开发中的“乐观更新"

        时间:2023-09-06
          <tbody id='Dp7ul'></tbody>

          <i id='Dp7ul'><tr id='Dp7ul'><dt id='Dp7ul'><q id='Dp7ul'><span id='Dp7ul'><b id='Dp7ul'><form id='Dp7ul'><ins id='Dp7ul'></ins><ul id='Dp7ul'></ul><sub id='Dp7ul'></sub></form><legend id='Dp7ul'></legend><bdo id='Dp7ul'><pre id='Dp7ul'><center id='Dp7ul'></center></pre></bdo></b><th id='Dp7ul'></th></span></q></dt></tr></i><div id='Dp7ul'><tfoot id='Dp7ul'></tfoot><dl id='Dp7ul'><fieldset id='Dp7ul'></fieldset></dl></div>
        • <legend id='Dp7ul'><style id='Dp7ul'><dir id='Dp7ul'><q id='Dp7ul'></q></dir></style></legend>
              <tfoot id='Dp7ul'></tfoot>
                <bdo id='Dp7ul'></bdo><ul id='Dp7ul'></ul>

                  <small id='Dp7ul'></small><noframes id='Dp7ul'>

                • 本文介绍了什么是前端开发中的“乐观更新"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在阅读 redux 模式简介,并且那里有以下一段:

                  I'm reading the intro to redux pattern, and there is the following paragraph there:

                  ...考虑新需求在前端产品中变得普遍开发,例如处理乐观更新,在服务器,在执行路由转换之前获取数据,等等.

                  ... consider the new requirements becoming common in front-end product development, such as handling optimistic updates, rendering on the server, fetching data before performing route transitions, and so on.

                  我的问题是这里的乐观更新是什么?

                  My question is what is optimistic updates here?

                  推荐答案

                  在乐观更新中,UI 表现得好像更改在收到服务器确认之前已成功完成 - 乐观的是它最终会得到确认而不是错误.这允许响应更快的用户体验.

                  In an optimistic update the UI behaves as though a change was successfully completed before receiving confirmation from the server that it actually was - it is being optimistic that it will eventually get the confirmation rather than an error. This allows for a more responsive user experience.

                  这篇关于什么是前端开发中的“乐观更新"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:TypeScript React.FC&lt;Props&gt;困惑 下一篇:如何检查选项卡是否已在 background.js 中重新加载?

                  相关文章

                  1. <legend id='W5vFB'><style id='W5vFB'><dir id='W5vFB'><q id='W5vFB'></q></dir></style></legend>
                    <i id='W5vFB'><tr id='W5vFB'><dt id='W5vFB'><q id='W5vFB'><span id='W5vFB'><b id='W5vFB'><form id='W5vFB'><ins id='W5vFB'></ins><ul id='W5vFB'></ul><sub id='W5vFB'></sub></form><legend id='W5vFB'></legend><bdo id='W5vFB'><pre id='W5vFB'><center id='W5vFB'></center></pre></bdo></b><th id='W5vFB'></th></span></q></dt></tr></i><div id='W5vFB'><tfoot id='W5vFB'></tfoot><dl id='W5vFB'><fieldset id='W5vFB'></fieldset></dl></div>

                    1. <tfoot id='W5vFB'></tfoot>

                      <small id='W5vFB'></small><noframes id='W5vFB'>

                        <bdo id='W5vFB'></bdo><ul id='W5vFB'></ul>