what is `optimistic updates` in front-end development

狂风中的少年 提交于 2019-11-27 02:08:33

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/33009657/what-is-optimistic-updates-in-front-end-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!