RxDataSources icon indicating copy to clipboard operation
RxDataSources copied to clipboard

What does it mean the duplicateItem error when moveIndex != nil?

Open iDevid opened this issue 4 years ago • 2 comments

Hello, I recently experienced a crash in an animated datasource due to a duplicateItem error.

The error is given by the by line 218 in Diff.swift, when it check initialItemData[itemPath.sectionIndex][itemPath.itemIndex].moveIndex != nil

I checked the newSections model but there aren't duplicated items, could you explain when this type of error is given?

Thank You

iDevid avatar Sep 25 '20 10:09 iDevid

I think this can also occur if your initialSections contains 2 items or sections with the same key. Would that have been the case?

teameh avatar Oct 08 '20 14:10 teameh

Thanks for the reply, I will check if this is the case, meanwhile, don't you think we should better explain the situation that arises?

iDevid avatar Oct 08 '20 14:10 iDevid