IGListKit
IGListKit copied to clipboard
Pull to refresh
hi, I trying to implement pull to refresh , but i got this error Duplicate identifier 3 for object LegacyProject.ExplorationModel with object LegacyProject.ExplorationModel' How i can fix that
ListDiffable->diffIdentifier(),your implementation of this method may be wrong.
@Bruce-pac can . you provide demo example ?!
Any help ?!
What is your implementation of this method?
Just i call api agin , and append data Ex: fetchRepoAPI()
I am grateful to you
@Bruce-pac nice demo but pull to refresh isn’t work do you have an example to help me ?!
You should probably replace the data in your datasource instead of appending it, because if it's a refresh, it's probably expected to get the same ids, and then depending on the implementation of the diffIdentifier
, you would also get the same identifiers, causing the "duplicate identifier" assertion.