Skip to content

尝试修复[探索.xx]页面的数组越界异常,还有一个优化 - #259

Closed
qigithub wants to merge 2 commits into
dmzz-yyhyy:refactoringfrom
qigithub:refactoring
Closed

尝试修复[探索.xx]页面的数组越界异常,还有一个优化#259
qigithub wants to merge 2 commits into
dmzz-yyhyy:refactoringfrom
qigithub:refactoring

Conversation

@qigithub

Copy link
Copy Markdown

优化原因:发现触发加载更多时,会滚动到_uiState.bookList的索引为0的位置,个人推测是 _uiState.bookList.clear()导致的问题

优化改成,比较2个list,取出不同的元素, 直接加旧list后面

@dmzz-yyhyy dmzz-yyhyy left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接从内容中提取不同的元素再添加,会导致筛选器这么失效
我的意见是使用Flow提供数据,然后viewModel收集并处理

@yukonisen

Copy link
Copy Markdown
Collaborator

please check #273

@dmzz-yyhyy dmzz-yyhyy closed this Sep 17, 2025
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

Successfully merging this pull request may close these issues.

3 participants