CymChad / CymChad/BaseRecyclerViewAdapterHelper
DiffUtil数据错误
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 24.6k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
版本:3.0.4
我使用loadMore加載更多,我只是在把後台返回的數據addAll到list,但是還沒刷新的時候,界面就已經顯示了加載更多之後的item
而且我使用DiffUtil,areItemsTheSame的old和new數據居然是一樣的,都是修改之後的數據。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the loadMore scenario described for version 3.0.4, where data is added to the list before refresh and DiffUtil receives identical old and new data. Trace the adapter's data handling and DiffUtil comparison flow; done means the interface changes only after the intended refresh and old/new snapshots remain distinguishable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100