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

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

Open
iDevid opened this issue Sep 25, 2020 · 2 comments
Open

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

iDevid opened this issue Sep 25, 2020 · 2 comments

Comments

@iDevid
Copy link

iDevid commented Sep 25, 2020

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

@teameh
Copy link

teameh commented Oct 8, 2020

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

@iDevid
Copy link
Author

iDevid commented Oct 8, 2020

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?

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

2 participants