Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在网络异常的情况,下拉刷新会异常显示 #215

Open
Coder-Miao opened this issue Nov 9, 2022 · 0 comments
Open

在网络异常的情况,下拉刷新会异常显示 #215

Coder-Miao opened this issue Nov 9, 2022 · 0 comments

Comments

@Coder-Miao
Copy link

网络: 应用启动前,开启飞行模式,无网络
启动逻辑: 冷启动,会触发接口,同时触发tableView的骨架屏start,设置6个cell
结果: 毫秒内出现骨架屏,骨架屏结束后,接着显示无数据的页面
bug: 当这个时候下拉刷新,发现dataSource没有变化,显示结束动画的cell
分析: 为啥dataSource没有变化,应该为0?
打印:_runIndexDict内容 "0":-100000,但是这个时候self.state = TABViewAnimationRunning
个人分析:由于断网,结束骨架屏很快,即使
self.state = TABViewAnimationEnd,但是weakTargetViewArray里的内容还没来的及释放,但是已经触发队列任务,productIndex++后,syncProductions会把state重置,所以重新下拉刷新的时候,state仍为running,最后原来dataSource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant