当前位置:网站首页>Solve the problem of data disorder caused by slow asynchronous interface
Solve the problem of data disorder caused by slow asynchronous interface
2022-07-04 21:42:00 【Grumpy plums are rotten Online】
bug Scene: the repetition
Filter the table data through the drop-down box
Quick screening or after the first screening , Switch the drop-down box immediately before the data returns The filtering results and filtering keywords do not match
Check the back-end interface The returned data is correct Basically, it can be judged that the problem is the slow interface request
Because the data returned by the server in the previous request is relatively slow , Not waiting for the first request to return results , The last request was initiated , And quickly returned the results , At this time, the table must show the result of the next time ;
After a few seconds , The result of the first request is returned , At this time, the data of the table is overwritten by the result of the first request This leads to the mismatch between the filtering results and the filtering keywords
And it eventually led to this bug
The most intuitive solution is to launch a second request , If the first request does not return , Just cancel the request , Use the return result of the second request .
边栏推荐
- Shutter WebView example
- 历史最全混合专家(MOE)模型相关精选论文、系统、应用整理分享
- 巅峰不止,继续奋斗!城链科技数字峰会于重庆隆重举行
- Jerry's ad series MIDI function description [chapter]
- 股票开户佣金最低多少,炒股开户佣金最低网上开户安全吗
- Analysis of maker education technology in the Internet Era
- 杰理之AD 系列 MIDI 功能说明【篇】
- redis管道
- Stealing others' vulnerability reports and selling them into sidelines, and the vulnerability reward platform gives rise to "insiders"
- 【公开课预告】:视频质量评价基础与实践
猜你喜欢
杰理之AD 系列 MIDI 功能说明【篇】
一文掌握数仓中auto analyze的使用
Flutter TextField示例
Redis03 - network configuration and heartbeat mechanism of redis
The video sound of station B is very low - solution
Difference between ApplicationContext and beanfactory (MS)
How was MP3 born?
LambdaQueryWrapper用法
Daily question -leetcode1200- minimum absolute difference - array - sort
杰理之增加进关机前把触摸模块关闭流程【篇】
随机推荐
Jerry's ad series MIDI function description [chapter]
[early knowledge of activities] list of recent activities of livevideostack
Operation of adding material schedule in SolidWorks drawing
【公开课预告】:视频质量评价基础与实践
Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away
Jerry's ad series MIDI function description [chapter]
How much is the minimum stock account opening commission? Is it safe to open an account online
Flutter在 release版本,打开后随机白屏不显示内容
Jerry's ad series MIDI function description [chapter]
redis发布订阅的使用
gtest从一无所知到熟练使用(4)如何用gtest写单元测试
Daily question-leetcode556-next larger element iii-string-double pointer-next_ permutation
【微信小程序】协同工作与发布
2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
Analysis of maker education technology in the Internet Era
Jerry's ad series MIDI function description [chapter]
股票开户佣金最低多少,炒股开户佣金最低网上开户安全吗
MP3是如何诞生的?
Interviewer: what is XSS attack?
Jerry's ad series MIDI function description [chapter]